home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / misc / multimou.000 / multimou
Tape Archive  |  1995-02-09  |  60.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: Tape Archive (archive/tar).

You can browse this item here: multimou

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Tape Archive (archive/tar) magic Supported
100% file POSIX tar archive (GNU) default
99% file POSIX tar archive (GNU), directory MultiMouse/, mode 40755 , uid 151 , gid 144 , size 0 , seconds 5716357044, user manabe, group dsl default
98% file data default
62% TrID TAR - Tape ARchive (GNU) default
37% TrID TAR - Tape ARchive (directory) default
100% siegfried x-fmt/265 Tape Archive Format default
100% lsar Tar default
100% gt2 TAR Archiv gefunden (Auflistung ist deaktiviert) default
100% disktype GNU tar archive default
100% detectItEasy Archive: tar default
100% binwalkID POSIX tar archive (GNU), owner user name: "se/" default
100% xdgMime application/x-tar default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4d 75 6c 74 69 4d 6f 75 | 73 65 2f 00 00 00 00 00 |MultiMou|se/.....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000060| 00 00 00 00 20 34 30 37 | 35 35 20 00 20 20 20 31 |.... 407|55 . 1|
|00000070| 35 31 20 00 20 20 20 31 | 34 34 20 00 20 20 20 20 |51 . 1|44 . |
|00000080| 20 20 20 20 20 20 30 20 | 20 35 37 31 36 33 35 37 | 0 | 5716357|
|00000090| 30 34 34 20 20 31 31 33 | 33 35 00 20 35 00 00 00 |044 113|35. 5...|
|000000a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 75 73 74 61 72 20 20 | 00 6d 61 6e 61 62 65 00 |.ustar |.manabe.|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 64 73 6c 00 00 00 00 |........|.dsl....|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 4d 75 6c 74 69 4d 6f 75 | 73 65 2f 4d 61 6b 65 66 |MultiMou|se/Makef|
|00000210| 69 6c 65 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |ile.....|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 31 30 30 36 | 34 34 20 00 20 20 20 31 |....1006|44 . 1|
|00000270| 35 31 20 00 20 20 20 31 | 34 34 20 00 20 20 20 20 |51 . 1|44 . |
|00000280| 20 20 20 32 34 33 33 20 | 20 35 37 31 36 31 36 32 | 2433 | 5716162|
|00000290| 34 31 32 20 20 31 33 30 | 36 35 00 20 30 00 00 00 |412 130|65. 0...|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 75 73 74 61 72 20 20 | 00 6d 61 6e 61 62 65 00 |.ustar |.manabe.|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 64 73 6c 00 00 00 00 |........|.dsl....|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000400| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000410| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000420| 23 23 23 23 23 0a 23 2a | 2a 2a 2a 2a 20 20 20 4d |#####.#*|**** M|
|00000430| 20 75 20 6c 20 74 20 69 | 20 4d 20 6f 20 75 20 73 | u l t i| M o u s|
|00000440| 20 65 20 20 20 2a 2a 2a | 2a 2a 23 0a 23 23 23 23 | e ***|**#.####|
|00000450| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000460| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000470| 23 0a 0a 50 52 45 46 49 | 58 3d 09 2f 75 73 72 2f |#..PREFI|X=./usr/|
|00000480| 6c 6f 63 61 6c 0a 0a 53 | 43 52 44 49 52 3d 09 24 |local..S|CRDIR=.$|
|00000490| 28 50 52 45 46 49 58 29 | 2f 62 69 6e 0a 42 49 4e |(PREFIX)|/bin.BIN|
|000004a0| 44 49 52 3d 09 24 28 50 | 52 45 46 49 58 29 2f 73 |DIR=.$(P|REFIX)/s|
|000004b0| 62 69 6e 0a 4a 4d 41 4e | 44 49 52 3d 2f 75 73 72 |bin.JMAN|DIR=/usr|
|000004c0| 2f 6d 61 6e 2f 6a 61 5f | 4a 50 2e 75 6a 69 73 0a |/man/ja_|JP.ujis.|
|000004d0| 4d 41 4e 31 44 49 52 3d | 24 28 4a 4d 41 4e 44 49 |MAN1DIR=|$(JMANDI|
|000004e0| 52 29 2f 6d 61 6e 31 0a | 4d 41 4e 38 44 49 52 3d |R)/man1.|MAN8DIR=|
|000004f0| 24 28 4a 4d 41 4e 44 49 | 52 29 2f 6d 61 6e 38 0a |$(JMANDI|R)/man8.|
|00000500| 46 49 46 4f 3d 09 2f 64 | 65 76 2f 6d 75 6d 73 65 |FIFO=./d|ev/mumse|
|00000510| 0a 4d 49 43 45 3d 09 32 | 0a 4c 4f 43 4b 44 49 52 |.MICE=.2|.LOCKDIR|
|00000520| 3d 2f 76 61 72 2f 6c 6f | 63 6b 2f 4d 75 6c 74 69 |=/var/lo|ck/Multi|
|00000530| 4d 6f 75 73 65 0a 54 41 | 52 47 45 54 3d 09 6d 75 |Mouse.TA|RGET=.mu|
|00000540| 6c 74 69 6d 6f 75 73 65 | 64 20 6d 75 6c 74 69 6d |ltimouse|d multim|
|00000550| 6f 75 73 65 20 6d 75 6c | 74 69 6d 6f 75 73 65 64 |ouse mul|timoused|
|00000560| 2e 38 20 6d 75 6c 74 69 | 6d 6f 75 73 65 2e 31 0a |.8 multi|mouse.1.|
|00000570| 4f 42 4a 53 3d 09 6d 61 | 69 6e 2e 6f 20 6d 6f 75 |OBJS=.ma|in.o mou|
|00000580| 73 65 2e 6f 20 64 61 65 | 6d 6f 6e 2e 6f 0a 4f 50 |se.o dae|mon.o.OP|
|00000590| 54 53 3d 09 2d 44 54 48 | 52 4f 55 47 48 5f 4d 4f |TS=.-DTH|ROUGH_MO|
|000005a0| 55 53 45 53 59 53 5c 0a | 09 2d 44 4d 4f 55 53 45 |USESYS\.|.-DMOUSE|
|000005b0| 5f 46 49 46 4f 3d 5c 22 | 24 28 46 49 46 4f 29 5c |_FIFO=\"|$(FIFO)\|
|000005c0| 22 5c 0a 09 2d 44 4c 4f | 43 4b 44 49 52 3d 5c 22 |"\..-DLO|CKDIR=\"|
|000005d0| 24 28 4c 4f 43 4b 44 49 | 52 29 5c 22 5c 0a 09 2d |$(LOCKDI|R)\"\..-|
|000005e0| 44 4d 41 58 5f 4d 49 43 | 45 3d 24 28 4d 49 43 45 |DMAX_MIC|E=$(MICE|
|000005f0| 29 0a 43 46 4c 41 47 53 | 3d 09 24 28 4f 50 54 53 |).CFLAGS|=.$(OPTS|
|00000600| 29 5c 0a 09 2d 4f 32 20 | 23 20 2d 44 44 45 42 55 |)\..-O2 |# -DDEBU|
|00000610| 47 0a 4c 44 4c 41 47 53 | 3d 09 2d 4f 32 0a 0a 61 |G.LDLAGS|=.-O2..a|
|00000620| 6c 6c 3a 09 24 28 54 41 | 52 47 45 54 29 0a 0a 6d |ll:.$(TA|RGET)..m|
|00000630| 75 6c 74 69 6d 6f 75 73 | 65 64 3a 09 24 28 4f 42 |ultimous|ed:.$(OB|
|00000640| 4a 53 29 0a 09 24 28 43 | 43 29 20 2d 6f 20 24 40 |JS)..$(C|C) -o $@|
|00000650| 20 24 28 4f 42 4a 53 29 | 0a 0a 6d 75 6c 74 69 6d | $(OBJS)|..multim|
|00000660| 6f 75 73 65 2e 31 20 6d | 75 6c 74 69 6d 6f 75 73 |ouse.1 m|ultimous|
|00000670| 65 64 2e 38 20 6d 75 6c | 74 69 6d 6f 75 73 65 3a |ed.8 mul|timouse:|
|00000680| 09 4d 61 6b 65 66 69 6c | 65 0a 09 73 65 64 20 2d |.Makefil|e..sed -|
|00000690| 65 20 27 73 7c 25 4c 4f | 43 4b 44 49 52 25 7c 24 |e 's|%LO|CKDIR%|$|
|000006a0| 28 4c 4f 43 4b 44 49 52 | 29 7c 27 20 2d 65 20 27 |(LOCKDIR|)|' -e '|
|000006b0| 73 7c 25 42 49 4e 44 49 | 52 25 7c 24 28 42 49 4e |s|%BINDI|R%|$(BIN|
|000006c0| 44 49 52 29 7c 27 5c 0a | 09 20 20 20 20 2d 65 20 |DIR)|'\.|. -e |
|000006d0| 27 73 7c 25 42 49 4e 44 | 49 52 25 7c 24 28 42 49 |'s|%BIND|IR%|$(BI|
|000006e0| 4e 44 49 52 29 7c 27 20 | 2d 65 20 27 73 7c 25 46 |NDIR)|' |-e 's|%F|
|000006f0| 49 46 4f 25 7c 24 28 46 | 49 46 4f 29 7c 27 5c 0a |IFO%|$(F|IFO)|'\.|
|00000700| 09 20 20 20 20 2d 65 20 | 27 73 7c 25 4d 49 43 45 |. -e |'s|%MICE|
|00000710| 25 7c 24 28 4d 49 43 45 | 29 7c 27 20 2d 65 20 27 |%|$(MICE|)|' -e '|
|00000720| 73 7c 25 53 43 52 44 49 | 52 25 7c 24 28 53 43 52 |s|%SCRDI|R%|$(SCR|
|00000730| 44 49 52 29 7c 27 5c 0a | 09 20 20 20 20 24 40 2e |DIR)|'\.|. $@.|
|00000740| 69 6e 20 3e 20 24 40 0a | 0a 63 6c 65 61 6e 3a 0a |in > $@.|.clean:.|
|00000750| 09 2d 72 6d 20 2d 66 20 | 24 28 4f 42 4a 53 29 20 |.-rm -f |$(OBJS) |
|00000760| 24 28 54 41 52 47 45 54 | 29 20 2a 7e 0a 0a 69 6e |$(TARGET|) *~..in|
|00000770| 73 74 61 6c 6c 3a 09 24 | 28 54 41 52 47 45 54 29 |stall:.$|(TARGET)|
|00000780| 0a 09 40 69 66 20 5b 20 | 21 20 2d 70 20 24 28 46 |..@if [ |! -p $(F|
|00000790| 49 46 4f 29 20 5d 3b 74 | 68 65 6e 20 6d 6b 66 69 |IFO) ];t|hen mkfi|
|000007a0| 66 6f 20 2d 6d 20 36 36 | 36 20 24 28 46 49 46 4f |fo -m 66|6 $(FIFO|
|000007b0| 29 3b 66 69 0a 09 40 69 | 66 20 5b 20 21 20 2d 64 |);fi..@i|f [ ! -d|
|000007c0| 20 24 28 4c 4f 43 4b 44 | 49 52 29 20 5d 3b 74 68 | $(LOCKD|IR) ];th|
|000007d0| 65 6e 20 6d 6b 64 69 72 | 20 24 28 4c 4f 43 4b 44 |en mkdir| $(LOCKD|
|000007e0| 49 52 29 3b 66 69 0a 09 | 40 69 66 20 5b 20 21 20 |IR);fi..|@if [ ! |
|000007f0| 2d 64 20 24 28 42 49 4e | 44 49 52 29 20 5d 3b 74 |-d $(BIN|DIR) ];t|
|00000800| 68 65 6e 20 6d 6b 64 69 | 72 20 24 28 42 49 4e 44 |hen mkdi|r $(BIND|
|00000810| 49 52 29 3b 66 69 0a 09 | 40 63 68 6d 6f 64 20 31 |IR);fi..|@chmod 1|
|00000820| 37 37 37 20 24 28 4c 4f | 43 4b 44 49 52 29 0a 09 |777 $(LO|CKDIR)..|
|00000830| 40 6c 73 20 2d 6c 20 24 | 28 46 49 46 4f 29 0a 09 |@ls -l $|(FIFO)..|
|00000840| 69 6e 73 74 61 6c 6c 20 | 2d 63 73 20 6d 75 6c 74 |install |-cs mult|
|00000850| 69 6d 6f 75 73 65 64 20 | 24 28 42 49 4e 44 49 52 |imoused |$(BINDIR|
|00000860| 29 0a 09 69 6e 73 74 61 | 6c 6c 20 2d 63 20 2d 6d |)..insta|ll -c -m|
|00000870| 20 37 35 35 20 6d 75 6c | 74 69 6d 6f 75 73 65 20 | 755 mul|timouse |
|00000880| 24 28 53 43 52 44 49 52 | 29 0a 09 69 66 20 5b 20 |$(SCRDIR|)..if [ |
|00000890| 2d 64 20 24 28 4a 4d 41 | 4e 44 49 52 29 20 5d 3b |-d $(JMA|NDIR) ];|
|000008a0| 20 74 68 65 6e 5c 0a 09 | 09 69 6e 73 74 61 6c 6c | then\..|.install|
|000008b0| 20 2d 63 20 2d 6d 20 36 | 34 34 20 6d 75 6c 74 69 | -c -m 6|44 multi|
|000008c0| 6d 6f 75 73 65 64 2e 38 | 20 24 28 4d 41 4e 38 44 |moused.8| $(MAN8D|
|000008d0| 49 52 29 3b 5c 0a 09 09 | 69 6e 73 74 61 6c 6c 20 |IR);\...|install |
|000008e0| 2d 63 20 2d 6d 20 36 34 | 34 20 6d 75 6c 74 69 6d |-c -m 64|4 multim|
|000008f0| 6f 75 73 65 2e 31 20 24 | 28 4d 41 4e 31 44 49 52 |ouse.1 $|(MAN1DIR|
|00000900| 29 3b 5c 0a 09 66 69 0a | 0a 24 28 4f 42 4a 53 29 |);\..fi.|.$(OBJS)|
|00000910| 3a 3a 09 6d 75 6d 73 65 | 2e 68 0a 00 00 00 00 00 |::.mumse|.h......|
|00000920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a00| 4d 75 6c 74 69 4d 6f 75 | 73 65 2f 64 61 65 6d 6f |MultiMou|se/daemo|
|00000a10| 6e 2e 63 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |n.c.....|........|
|00000a20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a60| 00 00 00 00 31 30 30 36 | 34 34 20 00 20 20 20 31 |....1006|44 . 1|
|00000a70| 35 31 20 00 20 20 20 31 | 34 34 20 00 20 20 20 20 |51 . 1|44 . |
|00000a80| 20 20 20 33 33 35 30 20 | 20 35 37 31 36 33 35 32 | 3350 | 5716352|
|00000a90| 31 33 37 20 20 31 33 30 | 34 30 00 20 30 00 00 00 |137 130|40. 0...|
|00000aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ab0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b00| 00 75 73 74 61 72 20 20 | 00 6d 61 6e 61 62 65 00 |.ustar |.manabe.|
|00000b10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b20| 00 00 00 00 00 00 00 00 | 00 64 73 6c 00 00 00 00 |........|.dsl....|
|00000b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c00| 2f 2a 0a 09 4d 75 6c 74 | 69 4d 6f 75 73 65 20 2d |/*..Mult|iMouse -|
|00000c10| 20 62 69 6e 64 20 4d 55 | 4c 54 49 70 6c 65 20 6d | bind MU|LTIple m|
|00000c20| 69 63 65 20 69 6e 74 6f | 20 61 20 4d 4f 55 53 45 |ice into| a MOUSE|
|00000c30| 20 2d 0a 09 43 6f 70 79 | 72 69 67 68 74 20 28 43 | -..Copy|right (C|
|00000c40| 29 20 31 39 39 35 20 54 | 61 6b 61 73 68 69 20 4d |) 1995 T|akashi M|
|00000c50| 41 4e 41 42 45 20 28 6d | 61 6e 61 62 65 40 70 61 |ANABE (m|anabe@pa|
|00000c60| 70 69 6c 69 6f 2e 74 75 | 74 69 63 73 2e 74 75 74 |pilio.tu|tics.tut|
|00000c70| 2e 61 63 2e 6a 70 29 0a | 0a 09 4d 75 6c 74 69 4d |.ac.jp).|..MultiM|
|00000c80| 6f 75 73 65 20 69 73 20 | 66 72 65 65 20 73 6f 66 |ouse is |free sof|
|00000c90| 74 77 61 72 65 3b 20 79 | 6f 75 20 63 61 6e 20 72 |tware; y|ou can r|
|00000ca0| 65 64 69 73 74 72 69 62 | 75 74 65 20 69 74 20 61 |edistrib|ute it a|
|00000cb0| 6e 64 2f 6f 72 20 6d 6f | 64 69 66 79 0a 09 69 74 |nd/or mo|dify..it|
|00000cc0| 20 75 6e 64 65 72 20 74 | 68 65 20 74 65 72 6d 73 | under t|he terms|
|00000cd0| 20 6f 66 20 74 68 65 20 | 47 4e 55 20 47 65 6e 65 | of the |GNU Gene|
|00000ce0| 72 61 6c 20 50 75 62 6c | 69 63 20 4c 69 63 65 6e |ral Publ|ic Licen|
|00000cf0| 73 65 20 61 73 20 70 75 | 62 6c 69 73 68 65 64 0a |se as pu|blished.|
|00000d00| 09 62 79 20 74 68 65 20 | 46 72 65 65 20 53 6f 66 |.by the |Free Sof|
|00000d10| 74 77 61 72 65 20 46 6f | 75 6e 64 61 74 69 6f 6e |tware Fo|undation|
|00000d20| 3b 20 65 69 74 68 65 72 | 20 76 65 72 73 69 6f 6e |; either| version|
|00000d30| 20 32 20 6f 66 20 74 68 | 65 20 4c 69 63 65 6e 73 | 2 of th|e Licens|
|00000d40| 65 2c 20 6f 72 0a 09 28 | 61 74 20 79 6f 75 72 20 |e, or..(|at your |
|00000d50| 6f 70 74 69 6f 6e 29 20 | 61 6e 79 20 6c 61 74 65 |option) |any late|
|00000d60| 72 20 76 65 72 73 69 6f | 6e 2e 0a 0a 09 4d 75 6c |r versio|n....Mul|
|00000d70| 74 69 4d 6f 75 73 65 20 | 69 73 20 64 69 73 74 72 |tiMouse |is distr|
|00000d80| 69 62 75 74 65 64 20 69 | 6e 20 74 68 65 20 68 6f |ibuted i|n the ho|
|00000d90| 70 65 20 74 68 61 74 20 | 69 74 20 77 69 6c 6c 20 |pe that |it will |
|00000da0| 62 65 20 75 73 65 66 75 | 6c 2c 0a 09 62 75 74 20 |be usefu|l,..but |
|00000db0| 57 49 54 48 4f 55 54 20 | 41 4e 59 20 57 41 52 52 |WITHOUT |ANY WARR|
|00000dc0| 41 4e 54 59 3b 20 77 69 | 74 68 6f 75 74 20 65 76 |ANTY; wi|thout ev|
|00000dd0| 65 6e 20 74 68 65 20 69 | 6d 70 6c 69 65 64 20 77 |en the i|mplied w|
|00000de0| 61 72 72 61 6e 74 79 20 | 6f 66 0a 09 4d 45 52 43 |arranty |of..MERC|
|00000df0| 48 41 4e 54 41 42 49 4c | 49 54 59 20 6f 72 20 46 |HANTABIL|ITY or F|
|00000e00| 49 54 4e 45 53 53 20 46 | 4f 52 20 41 20 50 41 52 |ITNESS F|OR A PAR|
|00000e10| 54 49 43 55 4c 41 52 20 | 50 55 52 50 4f 53 45 2e |TICULAR |PURPOSE.|
|00000e20| 0a 09 53 65 65 20 74 68 | 65 20 47 4e 55 20 47 65 |..See th|e GNU Ge|
|00000e30| 6e 65 72 61 6c 20 50 75 | 62 6c 69 63 20 4c 69 63 |neral Pu|blic Lic|
|00000e40| 65 6e 73 65 20 66 6f 72 | 20 6d 6f 72 65 20 64 65 |ense for| more de|
|00000e50| 74 61 69 6c 73 2e 0a 0a | 09 59 6f 75 20 73 68 6f |tails...|.You sho|
|00000e60| 75 6c 64 20 68 61 76 65 | 20 72 65 63 65 69 76 65 |uld have| receive|
|00000e70| 64 20 61 20 63 6f 70 79 | 20 6f 66 20 74 68 65 20 |d a copy| of the |
|00000e80| 47 4e 55 20 47 65 6e 65 | 72 61 6c 20 50 75 62 6c |GNU Gene|ral Publ|
|00000e90| 69 63 20 4c 69 63 65 6e | 73 65 0a 09 61 6c 6f 6e |ic Licen|se..alon|
|00000ea0| 67 20 77 69 74 68 20 74 | 68 69 73 20 70 72 6f 67 |g with t|his prog|
|00000eb0| 72 61 6d 3b 20 69 66 20 | 6e 6f 74 2c 20 77 72 69 |ram; if |not, wri|
|00000ec0| 74 65 20 74 6f 20 74 68 | 65 20 46 72 65 65 20 53 |te to th|e Free S|
|00000ed0| 6f 66 74 77 61 72 65 0a | 09 46 6f 75 6e 64 61 74 |oftware.|.Foundat|
|00000ee0| 69 6f 6e 2c 20 49 6e 63 | 2e 2c 20 36 37 35 20 4d |ion, Inc|., 675 M|
|00000ef0| 61 73 73 20 41 76 65 2c | 20 43 61 6d 62 72 69 64 |ass Ave,| Cambrid|
|00000f00| 67 65 2c 20 4d 41 20 30 | 32 31 33 39 2c 20 55 53 |ge, MA 0|2139, US|
|00000f10| 41 2e 0a 2a 2f 0a 0a 23 | 69 6e 63 6c 75 64 65 20 |A..*/..#|include |
|00000f20| 3c 73 74 64 69 6f 2e 68 | 3e 0a 23 69 6e 63 6c 75 |<stdio.h|>.#inclu|
|00000f30| 64 65 20 3c 66 63 6e 74 | 6c 2e 68 3e 0a 23 69 6e |de <fcnt|l.h>.#in|
|00000f40| 63 6c 75 64 65 20 3c 75 | 6e 69 73 74 64 2e 68 3e |clude <u|nistd.h>|
|00000f50| 0a 23 69 6e 63 6c 75 64 | 65 20 3c 73 79 73 2f 74 |.#includ|e <sys/t|
|00000f60| 79 70 65 73 2e 68 3e 0a | 23 69 6e 63 6c 75 64 65 |ypes.h>.|#include|
|00000f70| 20 3c 73 69 67 6e 61 6c | 2e 68 3e 0a 0a 23 69 6e | <signal|.h>..#in|
|00000f80| 63 6c 75 64 65 20 22 6d | 75 6d 73 65 2e 68 22 0a |clude "m|umse.h".|
|00000f90| 0a 73 74 61 74 69 63 20 | 70 69 64 5f 74 20 63 68 |.static |pid_t ch|
|00000fa0| 69 6c 64 50 69 64 3b 0a | 0a 73 74 61 74 69 63 0a |ildPid;.|.static.|
|00000fb0| 76 6f 69 64 20 51 75 69 | 74 44 61 65 6d 6f 6e 28 |void Qui|tDaemon(|
|00000fc0| 29 0a 7b 0a 23 69 66 64 | 65 66 20 44 45 42 55 47 |).{.#ifd|ef DEBUG|
|00000fd0| 0a 20 20 20 20 70 72 69 | 6e 74 66 28 22 51 75 69 |. pri|ntf("Qui|
|00000fe0| 74 44 61 65 6d 6f 6e 5c | 6e 22 29 3b 66 66 6c 75 |tDaemon\|n");fflu|
|00000ff0| 73 68 28 73 74 64 6f 75 | 74 29 3b 0a 23 65 6e 64 |sh(stdou|t);.#end|
|00001000| 69 66 0a 20 20 20 20 75 | 73 6c 65 65 70 28 31 30 |if. u|sleep(10|
|00001010| 30 30 30 30 29 3b 0a 20 | 20 20 20 63 6c 6f 73 65 |0000);. | close|
|00001020| 28 6d 73 46 69 66 6f 29 | 3b 0a 20 20 20 20 75 6e |(msFifo)|;. un|
|00001030| 6c 69 6e 6b 28 50 41 54 | 48 5f 50 49 44 29 3b 0a |link(PAT|H_PID);.|
|00001040| 20 20 20 20 65 78 69 74 | 28 30 29 3b 0a 7d 0a 0a | exit|(0);.}..|
|00001050| 2f 2a 0a 20 20 20 63 72 | 65 61 74 65 20 50 49 44 |/*. cr|eate PID|
|00001060| 20 66 69 6c 65 20 61 6e | 64 20 71 75 69 74 0a 2a | file an|d quit.*|
|00001070| 2f 0a 0a 73 74 61 74 69 | 63 0a 76 6f 69 64 20 51 |/..stati|c.void Q|
|00001080| 75 69 74 50 61 72 65 6e | 74 28 29 0a 7b 0a 20 20 |uitParen|t().{. |
|00001090| 20 20 46 49 4c 45 20 2a | 66 70 3b 0a 0a 20 20 20 | FILE *|fp;.. |
|000010a0| 20 69 66 20 28 28 66 70 | 20 3d 20 66 6f 70 65 6e | if ((fp| = fopen|
|000010b0| 28 50 41 54 48 5f 50 49 | 44 2c 20 22 77 22 29 29 |(PATH_PI|D, "w"))|
|000010c0| 20 3d 3d 20 4e 55 4c 4c | 29 20 7b 0a 09 70 65 72 | == NULL|) {..per|
|000010d0| 72 6f 72 28 50 41 54 48 | 5f 50 49 44 29 3b 0a 09 |ror(PATH|_PID);..|
|000010e0| 65 78 69 74 28 45 4f 46 | 29 3b 0a 20 20 20 20 7d |exit(EOF|);. }|
|000010f0| 0a 20 20 20 20 66 70 72 | 69 6e 74 66 28 66 70 2c |. fpr|intf(fp,|
|00001100| 20 22 25 64 5c 6e 22 2c | 20 63 68 69 6c 64 50 69 | "%d\n",| childPi|
|00001110| 64 29 3b 0a 20 20 20 20 | 66 63 6c 6f 73 65 28 66 |d);. |fclose(f|
|00001120| 70 29 3b 0a 20 20 20 20 | 65 78 69 74 28 30 29 3b |p);. |exit(0);|
|00001130| 0a 7d 0a 0a 2f 2a 0a 20 | 20 20 70 61 72 65 6e 74 |.}../*. | parent|
|00001140| 20 6e 65 76 65 72 20 72 | 65 74 75 72 6e 0a 2a 2f | never r|eturn.*/|
|00001150| 0a 0a 69 6e 74 20 4d 61 | 6b 65 4d 65 44 61 65 6d |..int Ma|keMeDaem|
|00001160| 6f 6e 28 29 0a 7b 0a 20 | 20 20 20 70 69 64 5f 74 |on().{. | pid_t|
|00001170| 20 70 61 72 65 6e 74 3b | 0a 0a 20 20 20 20 70 61 | parent;|.. pa|
|00001180| 72 65 6e 74 20 3d 20 67 | 65 74 70 69 64 28 29 3b |rent = g|etpid();|
|00001190| 0a 20 20 20 20 73 69 67 | 6e 61 6c 28 53 49 47 54 |. sig|nal(SIGT|
|000011a0| 45 52 4d 2c 20 51 75 69 | 74 50 61 72 65 6e 74 29 |ERM, Qui|tParent)|
|000011b0| 3b 0a 20 20 20 20 63 6c | 6f 73 65 28 66 69 6c 65 |;. cl|ose(file|
|000011c0| 6e 6f 28 73 74 64 69 6e | 29 29 3b 0a 20 20 20 20 |no(stdin|));. |
|000011d0| 63 6c 6f 73 65 28 66 69 | 6c 65 6e 6f 28 73 74 64 |close(fi|leno(std|
|000011e0| 6f 75 74 29 29 3b 0a 20 | 20 20 20 69 66 20 28 28 |out));. | if ((|
|000011f0| 63 68 69 6c 64 50 69 64 | 20 3d 20 76 66 6f 72 6b |childPid| = vfork|
|00001200| 28 29 29 20 3d 3d 20 2d | 31 29 20 7b 0a 09 70 65 |()) == -|1) {..pe|
|00001210| 72 72 6f 72 28 22 22 29 | 3b 0a 09 72 65 74 75 72 |rror("")|;..retur|
|00001220| 6e 28 45 4f 46 29 3b 0a | 20 20 20 20 7d 0a 20 20 |n(EOF);.| }. |
|00001230| 20 20 69 66 20 28 63 68 | 69 6c 64 50 69 64 29 20 | if (ch|ildPid) |
|00001240| 70 61 75 73 65 28 29 3b | 0a 20 20 20 20 73 65 74 |pause();|. set|
|00001250| 73 69 64 28 29 3b 0a 20 | 20 20 20 63 6c 6f 73 65 |sid();. | close|
|00001260| 28 66 69 6c 65 6e 6f 28 | 73 74 64 65 72 72 29 29 |(fileno(|stderr))|
|00001270| 3b 0a 20 20 20 20 6b 69 | 6c 6c 28 70 61 72 65 6e |;. ki|ll(paren|
|00001280| 74 2c 20 53 49 47 54 45 | 52 4d 29 3b 0a 7d 0a 0a |t, SIGTE|RM);.}..|
|00001290| 76 6f 69 64 20 53 65 74 | 53 69 67 6e 61 6c 73 28 |void Set|Signals(|
|000012a0| 29 0a 7b 0a 20 20 20 20 | 73 69 67 6e 61 6c 28 53 |).{. |signal(S|
|000012b0| 49 47 54 45 52 4d 2c 20 | 51 75 69 74 44 61 65 6d |IGTERM, |QuitDaem|
|000012c0| 6f 6e 29 3b 0a 20 20 20 | 20 73 69 67 6e 61 6c 28 |on);. | signal(|
|000012d0| 53 49 47 49 4e 54 2c 20 | 51 75 69 74 44 61 65 6d |SIGINT, |QuitDaem|
|000012e0| 6f 6e 29 3b 0a 7d 0a 0a | 00 00 00 00 00 00 00 00 |on);.}..|........|
|000012f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001400| 4d 75 6c 74 69 4d 6f 75 | 73 65 2f 6d 75 6d 73 65 |MultiMou|se/mumse|
|00001410| 2e 68 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.h......|........|
|00001420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001460| 00 00 00 00 31 30 30 36 | 34 34 20 00 20 20 20 31 |....1006|44 . 1|
|00001470| 35 31 20 00 20 20 20 31 | 34 34 20 00 20 20 20 20 |51 . 1|44 . |
|00001480| 20 20 20 32 35 34 37 20 | 20 35 37 31 36 31 34 37 | 2547 | 5716147|
|00001490| 34 34 31 20 20 31 32 37 | 33 37 00 20 30 00 00 00 |441 127|37. 0...|
|000014a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001500| 00 75 73 74 61 72 20 20 | 00 6d 61 6e 61 62 65 00 |.ustar |.manabe.|
|00001510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001520| 00 00 00 00 00 00 00 00 | 00 64 73 6c 00 00 00 00 |........|.dsl....|
|00001530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001600| 2f 2a 0a 09 4d 75 6c 74 | 69 4d 6f 75 73 65 20 2d |/*..Mult|iMouse -|
|00001610| 20 62 69 6e 64 20 4d 55 | 4c 54 49 70 6c 65 20 6d | bind MU|LTIple m|
|00001620| 69 63 65 20 69 6e 74 6f | 20 61 20 4d 4f 55 53 45 |ice into| a MOUSE|
|00001630| 20 2d 0a 09 43 6f 70 79 | 72 69 67 68 74 20 28 43 | -..Copy|right (C|
|00001640| 29 20 31 39 39 35 20 54 | 61 6b 61 73 68 69 20 4d |) 1995 T|akashi M|
|00001650| 41 4e 41 42 45 20 28 6d | 61 6e 61 62 65 40 70 61 |ANABE (m|anabe@pa|
|00001660| 70 69 6c 69 6f 2e 74 75 | 74 69 63 73 2e 74 75 74 |pilio.tu|tics.tut|
|00001670| 2e 61 63 2e 6a 70 29 0a | 0a 09 4d 75 6c 74 69 4d |.ac.jp).|..MultiM|
|00001680| 6f 75 73 65 20 69 73 20 | 66 72 65 65 20 73 6f 66 |ouse is |free sof|
|00001690| 74 77 61 72 65 3b 20 79 | 6f 75 20 63 61 6e 20 72 |tware; y|ou can r|
|000016a0| 65 64 69 73 74 72 69 62 | 75 74 65 20 69 74 20 61 |edistrib|ute it a|
|000016b0| 6e 64 2f 6f 72 20 6d 6f | 64 69 66 79 0a 09 69 74 |nd/or mo|dify..it|
|000016c0| 20 75 6e 64 65 72 20 74 | 68 65 20 74 65 72 6d 73 | under t|he terms|
|000016d0| 20 6f 66 20 74 68 65 20 | 47 4e 55 20 47 65 6e 65 | of the |GNU Gene|
|000016e0| 72 61 6c 20 50 75 62 6c | 69 63 20 4c 69 63 65 6e |ral Publ|ic Licen|
|000016f0| 73 65 20 61 73 20 70 75 | 62 6c 69 73 68 65 64 0a |se as pu|blished.|
|00001700| 09 62 79 20 74 68 65 20 | 46 72 65 65 20 53 6f 66 |.by the |Free Sof|
|00001710| 74 77 61 72 65 20 46 6f | 75 6e 64 61 74 69 6f 6e |tware Fo|undation|
|00001720| 3b 20 65 69 74 68 65 72 | 20 76 65 72 73 69 6f 6e |; either| version|
|00001730| 20 32 20 6f 66 20 74 68 | 65 20 4c 69 63 65 6e 73 | 2 of th|e Licens|
|00001740| 65 2c 20 6f 72 0a 09 28 | 61 74 20 79 6f 75 72 20 |e, or..(|at your |
|00001750| 6f 70 74 69 6f 6e 29 20 | 61 6e 79 20 6c 61 74 65 |option) |any late|
|00001760| 72 20 76 65 72 73 69 6f | 6e 2e 0a 0a 09 4d 75 6c |r versio|n....Mul|
|00001770| 74 69 4d 6f 75 73 65 20 | 69 73 20 64 69 73 74 72 |tiMouse |is distr|
|00001780| 69 62 75 74 65 64 20 69 | 6e 20 74 68 65 20 68 6f |ibuted i|n the ho|
|00001790| 70 65 20 74 68 61 74 20 | 69 74 20 77 69 6c 6c 20 |pe that |it will |
|000017a0| 62 65 20 75 73 65 66 75 | 6c 2c 0a 09 62 75 74 20 |be usefu|l,..but |
|000017b0| 57 49 54 48 4f 55 54 20 | 41 4e 59 20 57 41 52 52 |WITHOUT |ANY WARR|
|000017c0| 41 4e 54 59 3b 20 77 69 | 74 68 6f 75 74 20 65 76 |ANTY; wi|thout ev|
|000017d0| 65 6e 20 74 68 65 20 69 | 6d 70 6c 69 65 64 20 77 |en the i|mplied w|
|000017e0| 61 72 72 61 6e 74 79 20 | 6f 66 0a 09 4d 45 52 43 |arranty |of..MERC|
|000017f0| 48 41 4e 54 41 42 49 4c | 49 54 59 20 6f 72 20 46 |HANTABIL|ITY or F|
|00001800| 49 54 4e 45 53 53 20 46 | 4f 52 20 41 20 50 41 52 |ITNESS F|OR A PAR|
|00001810| 54 49 43 55 4c 41 52 20 | 50 55 52 50 4f 53 45 2e |TICULAR |PURPOSE.|
|00001820| 0a 09 53 65 65 20 74 68 | 65 20 47 4e 55 20 47 65 |..See th|e GNU Ge|
|00001830| 6e 65 72 61 6c 20 50 75 | 62 6c 69 63 20 4c 69 63 |neral Pu|blic Lic|
|00001840| 65 6e 73 65 20 66 6f 72 | 20 6d 6f 72 65 20 64 65 |ense for| more de|
|00001850| 74 61 69 6c 73 2e 0a 0a | 09 59 6f 75 20 73 68 6f |tails...|.You sho|
|00001860| 75 6c 64 20 68 61 76 65 | 20 72 65 63 65 69 76 65 |uld have| receive|
|00001870| 64 20 61 20 63 6f 70 79 | 20 6f 66 20 74 68 65 20 |d a copy| of the |
|00001880| 47 4e 55 20 47 65 6e 65 | 72 61 6c 20 50 75 62 6c |GNU Gene|ral Publ|
|00001890| 69 63 20 4c 69 63 65 6e | 73 65 0a 09 61 6c 6f 6e |ic Licen|se..alon|
|000018a0| 67 20 77 69 74 68 20 74 | 68 69 73 20 70 72 6f 67 |g with t|his prog|
|000018b0| 72 61 6d 3b 20 69 66 20 | 6e 6f 74 2c 20 77 72 69 |ram; if |not, wri|
|000018c0| 74 65 20 74 6f 20 74 68 | 65 20 46 72 65 65 20 53 |te to th|e Free S|
|000018d0| 6f 66 74 77 61 72 65 0a | 09 46 6f 75 6e 64 61 74 |oftware.|.Foundat|
|000018e0| 69 6f 6e 2c 20 49 6e 63 | 2e 2c 20 36 37 35 20 4d |ion, Inc|., 675 M|
|000018f0| 61 73 73 20 41 76 65 2c | 20 43 61 6d 62 72 69 64 |ass Ave,| Cambrid|
|00001900| 67 65 2c 20 4d 41 20 30 | 32 31 33 39 2c 20 55 53 |ge, MA 0|2139, US|
|00001910| 41 2e 0a 2a 2f 0a 0a 23 | 64 65 66 69 6e 65 09 56 |A..*/..#|define.V|
|00001920| 45 52 53 49 4f 4e 09 09 | 22 31 2e 30 30 22 0a 23 |ERSION..|"1.00".#|
|00001930| 69 66 6e 64 65 66 09 4d | 41 58 5f 4d 49 43 45 0a |ifndef.M|AX_MICE.|
|00001940| 23 64 65 66 69 6e 65 09 | 4d 41 58 5f 4d 49 43 45 |#define.|MAX_MICE|
|00001950| 09 32 0a 23 65 6e 64 69 | 66 0a 0a 2f 2a 20 44 4f |.2.#endi|f../* DO|
|00001960| 4e 27 54 20 45 44 49 54 | 20 2a 2f 0a 0a 23 69 66 |N'T EDIT| */..#if|
|00001970| 6e 64 65 66 09 4d 4f 55 | 53 45 5f 46 49 46 4f 0a |ndef.MOU|SE_FIFO.|
|00001980| 23 64 65 66 69 6e 65 09 | 4d 4f 55 53 45 5f 46 49 |#define.|MOUSE_FI|
|00001990| 46 4f 09 22 2f 64 65 76 | 2f 6d 75 6d 73 65 22 0a |FO."/dev|/mumse".|
|000019a0| 23 65 6e 64 69 66 0a 23 | 64 65 66 69 6e 65 20 4d |#endif.#|define M|
|000019b0| 4f 55 53 45 5f 50 4b 53 | 49 5a 45 09 35 0a 23 64 |OUSE_PKS|IZE.5.#d|
|000019c0| 65 66 69 6e 65 09 50 41 | 54 48 5f 50 49 44 09 4c |efine.PA|TH_PID.L|
|000019d0| 4f 43 4b 44 49 52 22 2f | 4d 75 6c 74 69 4d 6f 75 |OCKDIR"/|MultiMou|
|000019e0| 73 65 2e 70 69 64 22 0a | 0a 73 74 72 75 63 74 20 |se.pid".|.struct |
|000019f0| 6d 6f 75 73 65 50 72 6f | 74 6f 63 6f 6c 20 7b 0a |mousePro|tocol {.|
|00001a00| 20 20 20 20 75 5f 63 68 | 61 72 20 68 6d 61 73 6b | u_ch|ar hmask|
|00001a10| 2c 20 68 69 64 2c 20 64 | 6d 61 73 6b 2c 20 6c 65 |, hid, d|mask, le|
|00001a20| 6e 3b 0a 7d 3b 0a 0a 73 | 74 72 75 63 74 20 6d 6f |n;.};..s|truct mo|
|00001a30| 75 73 65 49 6e 66 6f 20 | 7b 0a 20 20 20 20 69 6e |useInfo |{. in|
|00001a40| 74 20 66 64 2c 20 6e 6f | 65 6d 75 3b 0a 20 20 20 |t fd, no|emu;. |
|00001a50| 20 73 74 72 75 63 74 20 | 6d 6f 75 73 65 50 72 6f | struct |mousePro|
|00001a60| 74 6f 63 6f 6c 20 6d 70 | 3b 0a 20 20 20 20 75 5f |tocol mp|;. u_|
|00001a70| 63 68 61 72 20 74 79 70 | 65 3b 0a 7d 3b 0a 0a 65 |char typ|e;.};..e|
|00001a80| 6e 75 6d 20 7b 0a 20 20 | 20 20 4d 4f 55 53 45 5f |num {. | MOUSE_|
|00001a90| 4d 49 43 52 4f 53 4f 46 | 54 2c 0a 20 20 20 20 4d |MICROSOF|T,. M|
|00001aa0| 4f 55 53 45 5f 42 55 53 | 4d 4f 55 53 45 2c 0a 20 |OUSE_BUS|MOUSE,. |
|00001ab0| 20 20 20 4d 4f 55 53 45 | 5f 4d 4d 53 45 52 49 45 | MOUSE|_MMSERIE|
|00001ac0| 53 2c 0a 20 20 20 20 4d | 4f 55 53 45 5f 4c 4f 47 |S,. M|OUSE_LOG|
|00001ad0| 49 54 45 43 48 2c 0a 20 | 20 20 20 4d 4f 55 53 45 |ITECH,. | MOUSE|
|00001ae0| 5f 50 53 32 2c 0a 20 20 | 20 20 4d 4f 55 53 45 5f |_PS2,. | MOUSE_|
|00001af0| 4d 4f 55 53 45 53 59 53 | 2c 0a 20 20 20 20 4d 4f |MOUSESYS|,. MO|
|00001b00| 55 53 45 5f 4e 4f 4d 4f | 55 53 45 0a 7d 3b 0a 0a |USE_NOMO|USE.};..|
|00001b10| 74 79 70 65 64 65 66 20 | 65 6e 75 6d 20 7b 46 41 |typedef |enum {FA|
|00001b20| 4c 53 45 2c 20 54 52 55 | 45 7d 20 62 6f 6f 6c 3b |LSE, TRU|E} bool;|
|00001b30| 0a 0a 65 78 74 65 72 6e | 20 69 6e 74 20 6d 73 46 |..extern| int msF|
|00001b40| 69 66 6f 3b 0a 65 78 74 | 65 72 6e 20 73 74 72 75 |ifo;.ext|ern stru|
|00001b50| 63 74 20 6d 6f 75 73 65 | 49 6e 66 6f 20 6d 73 49 |ct mouse|Info msI|
|00001b60| 6e 66 6f 5b 5d 3b 0a 00 | 00 00 00 00 00 00 00 00 |nfo[];..|........|
|00001b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c00| 4d 75 6c 74 69 4d 6f 75 | 73 65 2f 6d 6f 75 73 65 |MultiMou|se/mouse|
|00001c10| 2e 63 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.c......|........|
|00001c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c60| 00 00 00 00 31 30 30 36 | 34 34 20 00 20 20 20 31 |....1006|44 . 1|
|00001c70| 35 31 20 00 20 20 20 31 | 34 34 20 00 20 20 20 20 |51 . 1|44 . |
|00001c80| 20 20 31 33 30 32 35 20 | 20 35 37 31 36 31 35 32 | 13025 | 5716152|
|00001c90| 30 36 37 20 20 31 32 37 | 34 35 00 20 30 00 00 00 |067 127|45. 0...|
|00001ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d00| 00 75 73 74 61 72 20 20 | 00 6d 61 6e 61 62 65 00 |.ustar |.manabe.|
|00001d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d20| 00 00 00 00 00 00 00 00 | 00 64 73 6c 00 00 00 00 |........|.dsl....|
|00001d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e00| 2f 2a 0a 09 4d 75 6c 74 | 69 4d 6f 75 73 65 20 2d |/*..Mult|iMouse -|
|00001e10| 20 62 69 6e 64 20 4d 55 | 4c 54 49 70 6c 65 20 6d | bind MU|LTIple m|
|00001e20| 69 63 65 20 69 6e 74 6f | 20 61 20 4d 4f 55 53 45 |ice into| a MOUSE|
|00001e30| 20 2d 0a 09 43 6f 70 79 | 72 69 67 68 74 20 28 43 | -..Copy|right (C|
|00001e40| 29 20 31 39 39 35 20 54 | 61 6b 61 73 68 69 20 4d |) 1995 T|akashi M|
|00001e50| 41 4e 41 42 45 20 28 6d | 61 6e 61 62 65 40 70 61 |ANABE (m|anabe@pa|
|00001e60| 70 69 6c 69 6f 2e 74 75 | 74 69 63 73 2e 74 75 74 |pilio.tu|tics.tut|
|00001e70| 2e 61 63 2e 6a 70 29 0a | 0a 09 4d 75 6c 74 69 4d |.ac.jp).|..MultiM|
|00001e80| 6f 75 73 65 20 69 73 20 | 66 72 65 65 20 73 6f 66 |ouse is |free sof|
|00001e90| 74 77 61 72 65 3b 20 79 | 6f 75 20 63 61 6e 20 72 |tware; y|ou can r|
|00001ea0| 65 64 69 73 74 72 69 62 | 75 74 65 20 69 74 20 61 |edistrib|ute it a|
|00001eb0| 6e 64 2f 6f 72 20 6d 6f | 64 69 66 79 0a 09 69 74 |nd/or mo|dify..it|
|00001ec0| 20 75 6e 64 65 72 20 74 | 68 65 20 74 65 72 6d 73 | under t|he terms|
|00001ed0| 20 6f 66 20 74 68 65 20 | 47 4e 55 20 47 65 6e 65 | of the |GNU Gene|
|00001ee0| 72 61 6c 20 50 75 62 6c | 69 63 20 4c 69 63 65 6e |ral Publ|ic Licen|
|00001ef0| 73 65 20 61 73 20 70 75 | 62 6c 69 73 68 65 64 0a |se as pu|blished.|
|00001f00| 09 62 79 20 74 68 65 20 | 46 72 65 65 20 53 6f 66 |.by the |Free Sof|
|00001f10| 74 77 61 72 65 20 46 6f | 75 6e 64 61 74 69 6f 6e |tware Fo|undation|
|00001f20| 3b 20 65 69 74 68 65 72 | 20 76 65 72 73 69 6f 6e |; either| version|
|00001f30| 20 32 20 6f 66 20 74 68 | 65 20 4c 69 63 65 6e 73 | 2 of th|e Licens|
|00001f40| 65 2c 20 6f 72 0a 09 28 | 61 74 20 79 6f 75 72 20 |e, or..(|at your |
|00001f50| 6f 70 74 69 6f 6e 29 20 | 61 6e 79 20 6c 61 74 65 |option) |any late|
|00001f60| 72 20 76 65 72 73 69 6f | 6e 2e 0a 0a 09 4d 75 6c |r versio|n....Mul|
|00001f70| 74 69 4d 6f 75 73 65 20 | 69 73 20 64 69 73 74 72 |tiMouse |is distr|
|00001f80| 69 62 75 74 65 64 20 69 | 6e 20 74 68 65 20 68 6f |ibuted i|n the ho|
|00001f90| 70 65 20 74 68 61 74 20 | 69 74 20 77 69 6c 6c 20 |pe that |it will |
|00001fa0| 62 65 20 75 73 65 66 75 | 6c 2c 0a 09 62 75 74 20 |be usefu|l,..but |
|00001fb0| 57 49 54 48 4f 55 54 20 | 41 4e 59 20 57 41 52 52 |WITHOUT |ANY WARR|
|00001fc0| 41 4e 54 59 3b 20 77 69 | 74 68 6f 75 74 20 65 76 |ANTY; wi|thout ev|
|00001fd0| 65 6e 20 74 68 65 20 69 | 6d 70 6c 69 65 64 20 77 |en the i|mplied w|
|00001fe0| 61 72 72 61 6e 74 79 20 | 6f 66 0a 09 4d 45 52 43 |arranty |of..MERC|
|00001ff0| 48 41 4e 54 41 42 49 4c | 49 54 59 20 6f 72 20 46 |HANTABIL|ITY or F|
|00002000| 49 54 4e 45 53 53 20 46 | 4f 52 20 41 20 50 41 52 |ITNESS F|OR A PAR|
|00002010| 54 49 43 55 4c 41 52 20 | 50 55 52 50 4f 53 45 2e |TICULAR |PURPOSE.|
|00002020| 0a 09 53 65 65 20 74 68 | 65 20 47 4e 55 20 47 65 |..See th|e GNU Ge|
|00002030| 6e 65 72 61 6c 20 50 75 | 62 6c 69 63 20 4c 69 63 |neral Pu|blic Lic|
|00002040| 65 6e 73 65 20 66 6f 72 | 20 6d 6f 72 65 20 64 65 |ense for| more de|
|00002050| 74 61 69 6c 73 2e 0a 0a | 09 59 6f 75 20 73 68 6f |tails...|.You sho|
|00002060| 75 6c 64 20 68 61 76 65 | 20 72 65 63 65 69 76 65 |uld have| receive|
|00002070| 64 20 61 20 63 6f 70 79 | 20 6f 66 20 74 68 65 20 |d a copy| of the |
|00002080| 47 4e 55 20 47 65 6e 65 | 72 61 6c 20 50 75 62 6c |GNU Gene|ral Publ|
|00002090| 69 63 20 4c 69 63 65 6e | 73 65 0a 09 61 6c 6f 6e |ic Licen|se..alon|
|000020a0| 67 20 77 69 74 68 20 74 | 68 69 73 20 70 72 6f 67 |g with t|his prog|
|000020b0| 72 61 6d 3b 20 69 66 20 | 6e 6f 74 2c 20 77 72 69 |ram; if |not, wri|
|000020c0| 74 65 20 74 6f 20 74 68 | 65 20 46 72 65 65 20 53 |te to th|e Free S|
|000020d0| 6f 66 74 77 61 72 65 0a | 09 46 6f 75 6e 64 61 74 |oftware.|.Foundat|
|000020e0| 69 6f 6e 2c 20 49 6e 63 | 2e 2c 20 36 37 35 20 4d |ion, Inc|., 675 M|
|000020f0| 61 73 73 20 41 76 65 2c | 20 43 61 6d 62 72 69 64 |ass Ave,| Cambrid|
|00002100| 67 65 2c 20 4d 41 20 30 | 32 31 33 39 2c 20 55 53 |ge, MA 0|2139, US|
|00002110| 41 2e 0a 2a 2f 0a 0a 23 | 69 6e 63 6c 75 64 65 20 |A..*/..#|include |
|00002120| 3c 73 74 64 69 6f 2e 68 | 3e 0a 23 69 6e 63 6c 75 |<stdio.h|>.#inclu|
|00002130| 64 65 20 3c 75 6e 69 73 | 74 64 2e 68 3e 0a 23 69 |de <unis|td.h>.#i|
|00002140| 6e 63 6c 75 64 65 20 3c | 65 72 72 6e 6f 2e 68 3e |nclude <|errno.h>|
|00002150| 0a 23 69 6e 63 6c 75 64 | 65 20 3c 73 79 73 2f 74 |.#includ|e <sys/t|
|00002160| 79 70 65 73 2e 68 3e 0a | 23 69 6e 63 6c 75 64 65 |ypes.h>.|#include|
|00002170| 20 3c 73 79 73 2f 74 69 | 6d 65 2e 68 3e 0a 23 69 | <sys/ti|me.h>.#i|
|00002180| 6e 63 6c 75 64 65 20 3c | 73 69 67 6e 61 6c 2e 68 |nclude <|signal.h|
|00002190| 3e 0a 0a 23 69 6e 63 6c | 75 64 65 20 22 6d 75 6d |>..#incl|ude "mum|
|000021a0| 73 65 2e 68 22 0a 0a 69 | 6e 74 20 6d 73 46 69 66 |se.h"..i|nt msFif|
|000021b0| 6f 3b 0a 73 74 72 75 63 | 74 20 6d 6f 75 73 65 49 |o;.struc|t mouseI|
|000021c0| 6e 66 6f 20 6d 73 49 6e | 66 6f 5b 4d 41 58 5f 4d |nfo msIn|fo[MAX_M|
|000021d0| 49 43 45 5d 3b 0a 0a 2f | 2a 0a 20 20 20 61 6e 61 |ICE];../|*. ana|
|000021e0| 6c 79 7a 65 20 70 61 63 | 6b 65 74 20 61 6e 64 20 |lyze pac|ket and |
|000021f0| 63 6f 6e 76 65 72 74 20 | 69 6e 74 6f 20 4d 6f 75 |convert |into Mou|
|00002200| 73 65 53 79 73 74 65 6d | 73 20 70 72 6f 74 6f 63 |seSystem|s protoc|
|00002210| 6f 6c 0a 2a 2f 0a 0a 73 | 74 61 74 69 63 0a 76 6f |ol.*/..s|tatic.vo|
|00002220| 69 64 20 43 6f 6e 76 65 | 72 74 50 72 6f 74 6f 63 |id Conve|rtProtoc|
|00002230| 6f 6c 28 73 74 72 75 63 | 74 20 6d 6f 75 73 65 49 |ol(struc|t mouseI|
|00002240| 6e 66 6f 20 2a 6d 73 69 | 2c 20 75 5f 63 68 61 72 |nfo *msi|, u_char|
|00002250| 20 2a 70 61 63 6b 65 74 | 2c 20 69 6e 74 20 6c 65 | *packet|, int le|
|00002260| 6e 29 0a 7b 0a 20 20 20 | 20 69 6e 74 20 64 78 2c |n).{. | int dx,|
|00002270| 20 64 79 3b 0a 20 20 20 | 20 62 6f 6f 6c 20 72 65 | dy;. | bool re|
|00002280| 6c 65 61 73 65 64 3d 46 | 41 4c 53 45 3b 0a 20 20 |leased=F|ALSE;. |
|00002290| 20 20 75 5f 63 68 61 72 | 20 73 74 61 74 2c 20 6e | u_char| stat, n|
|000022a0| 6f 77 3b 0a 20 20 20 20 | 73 74 61 74 69 63 20 75 |ow;. |static u|
|000022b0| 5f 63 68 61 72 20 6c 61 | 73 74 3b 0a 20 20 20 20 |_char la|st;. |
|000022c0| 2f 2a 0a 20 20 20 20 20 | 20 20 73 74 61 74 3a 20 |/*. | stat: |
|000022d0| 62 75 74 74 6f 6e 73 20 | 73 74 61 74 75 73 20 6d |buttons |status m|
|000022e0| 6f 64 69 66 69 65 64 20 | 66 6f 72 20 65 6d 75 20 |odified |for emu |
|000022f0| 6d 6f 64 65 0a 20 20 20 | 20 20 20 20 6e 6f 77 3a |mode. | now:|
|00002300| 20 20 62 61 72 65 20 73 | 74 61 74 75 73 0a 20 20 | bare s|tatus. |
|00002310| 20 20 20 20 20 6c 61 73 | 74 3a 20 68 69 67 68 34 | las|t: high4|
|00002320| 62 69 74 73 3d 6c 61 73 | 74 20 6e 6f 77 2c 20 6c |bits=las|t now, l|
|00002330| 6f 77 34 62 69 74 73 3d | 6c 61 73 74 20 73 74 61 |ow4bits=|last sta|
|00002340| 74 0a 20 20 20 20 2a 2f | 0a 0a 20 20 20 20 73 77 |t. */|.. sw|
|00002350| 69 74 63 68 20 28 6d 73 | 69 2d 3e 74 79 70 65 29 |itch (ms|i->type)|
|00002360| 20 7b 0a 20 20 20 20 63 | 61 73 65 20 4d 4f 55 53 | {. c|ase MOUS|
|00002370| 45 5f 4d 49 43 52 4f 53 | 4f 46 54 3a 0a 09 69 66 |E_MICROS|OFT:..if|
|00002380| 20 28 6c 65 6e 20 3c 20 | 33 29 20 7b 0a 09 20 20 | (len < |3) {.. |
|00002390| 20 20 2f 2a 0a 09 20 20 | 20 20 20 20 20 4c 6f 67 | /*.. | Log|
|000023a0| 69 74 65 63 68 20 46 69 | 72 73 74 20 4d 6f 75 73 |itech Fi|rst Mous|
|000023b0| 65 20 33 20 62 75 74 74 | 6f 6e 73 20 6d 6f 64 65 |e 3 butt|ons mode|
|000023c0| 20 75 73 65 20 76 61 72 | 69 61 62 6c 65 20 6c 65 | use var|iable le|
|000023d0| 6e 67 74 68 0a 09 20 20 | 20 20 20 20 20 70 61 63 |ngth.. | pac|
|000023e0| 6b 65 74 2e 20 28 6e 6f | 72 6d 61 6c 20 6d 6f 64 |ket. (no|rmal mod|
|000023f0| 65 20 3d 20 33 62 79 74 | 65 73 2c 20 77 69 74 68 |e = 3byt|es, with|
|00002400| 20 33 72 64 20 62 75 74 | 74 6f 6e 20 3d 20 34 62 | 3rd but|ton = 4b|
|00002410| 79 74 65 73 29 0a 09 20 | 20 20 20 20 20 20 49 6e |ytes).. | In|
|00002420| 20 6c 6f 6e 67 20 70 61 | 63 6b 65 74 2c 20 65 78 | long pa|cket, ex|
|00002430| 74 72 61 20 62 79 74 65 | 20 28 66 69 72 73 74 20 |tra byte| (first |
|00002440| 31 20 62 79 74 65 29 20 | 69 73 20 73 74 6f 72 65 |1 byte) |is store|
|00002450| 64 20 69 6e 0a 09 20 20 | 20 20 20 20 20 70 61 63 |d in.. | pac|
|00002460| 6b 65 74 5b 33 5d 2e 0a | 09 20 20 20 20 2a 2f 0a |ket[3]..|. */.|
|00002470| 09 20 20 20 20 73 74 61 | 74 20 3d 20 70 61 63 6b |. sta|t = pack|
|00002480| 65 74 5b 33 5d 20 7c 20 | 28 6c 61 73 74 20 26 20 |et[3] | |(last & |
|00002490| 30 78 35 29 3b 0a 09 20 | 20 20 20 64 78 20 3d 20 |0x5);.. | dx = |
|000024a0| 64 79 20 3d 20 30 3b 0a | 09 20 20 20 20 62 72 65 |dy = 0;.|. bre|
|000024b0| 61 6b 3b 0a 09 7d 0a 09 | 73 74 61 74 20 3d 20 28 |ak;..}..|stat = (|
|000024c0| 28 70 61 63 6b 65 74 5b | 30 5d 20 26 20 30 78 32 |(packet[|0] & 0x2|
|000024d0| 30 29 20 3e 3e 20 33 29 | 20 7c 20 28 28 70 61 63 |0) >> 3)| | ((pac|
|000024e0| 6b 65 74 5b 30 5d 20 26 | 20 30 78 31 30 29 20 3e |ket[0] &| 0x10) >|
|000024f0| 3e 20 34 29 0a 09 20 20 | 20 20 7c 20 28 6d 73 69 |> 4).. | | (msi|
|00002500| 2d 3e 6e 6f 65 6d 75 20 | 3f 20 6c 61 73 74 20 26 |->noemu |? last &|
|00002510| 20 32 3a 20 30 29 3b 0a | 09 64 78 20 3d 20 28 63 | 2: 0);.|.dx = (c|
|00002520| 68 61 72 29 28 28 28 70 | 61 63 6b 65 74 5b 30 5d |har)(((p|acket[0]|
|00002530| 20 26 20 30 78 30 33 29 | 20 3c 3c 20 36 29 20 7c | & 0x03)| << 6) ||
|00002540| 20 28 70 61 63 6b 65 74 | 5b 31 5d 20 26 20 30 78 | (packet|[1] & 0x|
|00002550| 33 46 29 29 3b 0a 09 64 | 79 20 3d 20 28 63 68 61 |3F));..d|y = (cha|
|00002560| 72 29 28 28 28 70 61 63 | 6b 65 74 5b 30 5d 20 26 |r)(((pac|ket[0] &|
|00002570| 20 30 78 30 43 29 20 3c | 3c 20 34 29 20 7c 20 28 | 0x0C) <|< 4) | (|
|00002580| 70 61 63 6b 65 74 5b 32 | 5d 20 26 20 30 78 33 46 |packet[2|] & 0x3F|
|00002590| 29 29 3b 0a 09 62 72 65 | 61 6b 3b 0a 23 69 66 6e |));..bre|ak;.#ifn|
|000025a0| 64 65 66 09 54 48 52 4f | 55 47 48 5f 4d 4f 55 53 |def.THRO|UGH_MOUS|
|000025b0| 45 53 59 53 0a 20 20 20 | 20 63 61 73 65 20 4d 4f |ESYS. | case MO|
|000025c0| 55 53 45 5f 4d 4f 55 53 | 45 53 59 53 3a 0a 09 73 |USE_MOUS|ESYS:..s|
|000025d0| 74 61 74 20 3d 20 28 7e | 70 61 63 6b 65 74 5b 30 |tat = (~|packet[0|
|000025e0| 5d 29 20 26 20 30 78 30 | 37 3b 0a 09 64 78 20 3d |]) & 0x0|7;..dx =|
|000025f0| 20 28 63 68 61 72 29 28 | 70 61 63 6b 65 74 5b 31 | (char)(|packet[1|
|00002600| 5d 29 20 2b 20 28 63 68 | 61 72 29 28 70 61 63 6b |]) + (ch|ar)(pack|
|00002610| 65 74 5b 33 5d 29 3b 0a | 09 64 79 20 3d 20 2d 20 |et[3]);.|.dy = - |
|00002620| 28 28 63 68 61 72 29 28 | 70 61 63 6b 65 74 5b 32 |((char)(|packet[2|
|00002630| 5d 29 20 2b 20 28 63 68 | 61 72 29 28 70 61 63 6b |]) + (ch|ar)(pack|
|00002640| 65 74 5b 34 5d 29 29 3b | 0a 09 62 72 65 61 6b 3b |et[4]));|..break;|
|00002650| 0a 23 65 6e 64 69 66 0a | 20 20 20 20 63 61 73 65 |.#endif.| case|
|00002660| 20 4d 4f 55 53 45 5f 4d | 4d 53 45 52 49 45 53 3a | MOUSE_M|MSERIES:|
|00002670| 0a 20 20 20 20 63 61 73 | 65 20 4d 4f 55 53 45 5f |. cas|e MOUSE_|
|00002680| 4c 4f 47 49 54 45 43 48 | 3a 0a 09 73 74 61 74 20 |LOGITECH|:..stat |
|00002690| 3d 20 70 61 63 6b 65 74 | 5b 30 5d 20 26 20 30 78 |= packet|[0] & 0x|
|000026a0| 30 37 3b 0a 09 64 78 20 | 3d 20 28 70 61 63 6b 65 |07;..dx |= (packe|
|000026b0| 74 5b 30 5d 20 26 20 30 | 78 31 30 29 20 3f 20 70 |t[0] & 0|x10) ? p|
|000026c0| 61 63 6b 65 74 5b 31 5d | 3a 20 2d 20 70 61 63 6b |acket[1]|: - pack|
|000026d0| 65 74 5b 31 5d 3b 0a 09 | 64 79 20 3d 20 28 70 61 |et[1];..|dy = (pa|
|000026e0| 63 6b 65 74 5b 30 5d 20 | 26 20 30 78 30 38 29 20 |cket[0] |& 0x08) |
|000026f0| 3f 20 2d 20 70 61 63 6b | 65 74 5b 32 5d 3a 20 70 |? - pack|et[2]: p|
|00002700| 61 63 6b 65 74 5b 32 5d | 3b 0a 09 62 72 65 61 6b |acket[2]|;..break|
|00002710| 3b 0a 20 20 20 20 63 61 | 73 65 20 4d 4f 55 53 45 |;. ca|se MOUSE|
|00002720| 5f 50 53 32 3a 0a 09 73 | 74 61 74 20 3d 20 28 28 |_PS2:..s|tat = ((|
|00002730| 70 61 63 6b 65 74 5b 30 | 5d 20 26 20 30 78 30 31 |packet[0|] & 0x01|
|00002740| 29 20 3c 3c 20 32 29 20 | 7c 20 28 28 70 61 63 6b |) << 2) || ((pack|
|00002750| 65 74 5b 30 5d 20 26 20 | 30 78 30 36 29 20 3e 3e |et[0] & |0x06) >>|
|00002760| 20 31 29 3b 0a 09 64 78 | 20 3d 20 28 63 68 61 72 | 1);..dx| = (char|
|00002770| 29 28 70 61 63 6b 65 74 | 5b 31 5d 29 3b 0a 09 64 |)(packet|[1]);..d|
|00002780| 79 20 3d 20 2d 28 63 68 | 61 72 29 28 70 61 63 6b |y = -(ch|ar)(pack|
|00002790| 65 74 5b 32 5d 29 3b 0a | 09 62 72 65 61 6b 3b 0a |et[2]);.|.break;.|
|000027a0| 20 20 20 20 63 61 73 65 | 20 4d 4f 55 53 45 5f 42 | case| MOUSE_B|
|000027b0| 55 53 4d 4f 55 53 45 3a | 0a 09 73 74 61 74 20 3d |USMOUSE:|..stat =|
|000027c0| 20 28 7e 70 61 63 6b 65 | 74 5b 30 5d 29 20 26 20 | (~packe|t[0]) & |
|000027d0| 30 78 30 37 3b 0a 09 64 | 78 20 3d 20 28 63 68 61 |0x07;..d|x = (cha|
|000027e0| 72 29 70 61 63 6b 65 74 | 5b 31 5d 3b 0a 09 64 79 |r)packet|[1];..dy|
|000027f0| 20 3d 20 2d 20 28 63 68 | 61 72 29 70 61 63 6b 65 | = - (ch|ar)packe|
|00002800| 74 5b 32 5d 3b 0a 09 62 | 72 65 61 6b 3b 0a 20 20 |t[2];..b|reak;. |
|00002810| 20 20 7d 0a 20 20 20 20 | 6e 6f 77 20 3d 20 73 74 | }. |now = st|
|00002820| 61 74 3b 0a 20 20 20 20 | 2f 2a 0a 20 20 20 20 20 |at;. |/*. |
|00002830| 20 20 33 20 62 75 74 74 | 6f 6e 73 20 65 6d 75 6c | 3 butt|ons emul|
|00002840| 61 74 69 6f 6e 20 70 72 | 6f 63 65 73 73 0a 20 20 |ation pr|ocess. |
|00002850| 20 20 2a 2f 0a 20 20 20 | 20 69 66 20 28 21 6d 73 | */. | if (!ms|
|00002860| 69 2d 3e 6e 6f 65 6d 75 | 29 20 7b 0a 09 69 66 20 |i->noemu|) {..if |
|00002870| 28 28 21 64 78 20 26 26 | 20 21 64 79 29 20 7c 7c |((!dx &&| !dy) |||
|00002880| 20 28 6c 61 73 74 20 26 | 20 30 78 32 29 29 20 7b | (last &| 0x2)) {|
|00002890| 0a 09 20 20 20 20 73 74 | 61 74 20 26 3d 20 7e 35 |.. st|at &= ~5|
|000028a0| 3b 0a 09 20 20 20 20 69 | 66 20 28 28 6e 6f 77 20 |;.. i|f ((now |
|000028b0| 26 20 35 29 20 3d 3d 20 | 35 29 20 73 74 61 74 20 |& 5) == |5) stat |
|000028c0| 7c 3d 20 32 3b 0a 09 7d | 0a 09 69 66 20 28 21 64 ||= 2;..}|..if (!d|
|000028d0| 78 20 26 26 20 21 64 79 | 20 26 26 20 21 28 73 74 |x && !dy| && !(st|
|000028e0| 61 74 20 26 20 32 29 29 | 20 7b 0a 09 20 20 20 20 |at & 2))| {.. |
|000028f0| 69 66 20 28 28 6c 61 73 | 74 20 26 20 30 78 35 30 |if ((las|t & 0x50|
|00002900| 29 20 26 26 20 21 28 6e | 6f 77 20 26 20 35 29 29 |) && !(n|ow & 5))|
|00002910| 20 7b 0a 09 09 73 74 61 | 74 20 7c 3d 20 28 28 6c | {...sta|t |= ((l|
|00002920| 61 73 74 20 26 20 32 29 | 20 3f 20 6c 61 73 74 3a |ast & 2)| ? last:|
|00002930| 20 28 6c 61 73 74 20 3e | 3e 20 34 29 29 20 26 20 | (last >|> 4)) & |
|00002940| 35 3b 0a 09 09 69 66 20 | 28 21 28 6c 61 73 74 20 |5;...if |(!(last |
|00002950| 26 20 32 29 29 20 72 65 | 6c 65 61 73 65 64 20 3d |& 2)) re|leased =|
|00002960| 20 54 52 55 45 3b 0a 09 | 20 20 20 20 7d 20 65 6c | TRUE;..| } el|
|00002970| 73 65 20 7b 0a 09 09 6c | 61 73 74 20 3d 20 28 6e |se {...l|ast = (n|
|00002980| 6f 77 20 3c 3c 20 34 29 | 20 7c 20 73 74 61 74 3b |ow << 4)| | stat;|
|00002990| 0a 09 09 72 65 74 75 72 | 6e 3b 0a 09 20 20 20 20 |...retur|n;.. |
|000029a0| 7d 0a 09 7d 0a 20 20 20 | 20 7d 0a 0a 23 69 66 20 |}..}. | }..#if |
|000029b0| 30 0a 20 20 20 20 70 72 | 69 6e 74 66 28 22 28 25 |0. pr|intf("(%|
|000029c0| 64 2c 20 25 30 32 58 20 | 25 30 32 58 20 25 30 32 |d, %02X |%02X %02|
|000029d0| 58 20 25 30 32 58 20 25 | 30 32 58 29 22 2c 20 6c |X %02X %|02X)", l|
|000029e0| 65 6e 2c 20 70 61 63 6b | 65 74 5b 30 5d 2c 0a 09 |en, pack|et[0],..|
|000029f0| 20 20 20 70 61 63 6b 65 | 74 5b 31 5d 2c 20 70 61 | packe|t[1], pa|
|00002a00| 63 6b 65 74 5b 32 5d 2c | 20 70 61 63 6b 65 74 5b |cket[2],| packet[|
|00002a10| 33 5d 2c 20 70 61 63 6b | 65 74 5b 34 5d 29 3b 0a |3], pack|et[4]);.|
|00002a20| 23 65 6e 64 69 66 0a 0a | 20 20 20 20 2f 2a 0a 20 |#endif..| /*. |
|00002a30| 20 20 20 20 20 20 6d 61 | 6b 65 20 4d 6f 75 73 65 | ma|ke Mouse|
|00002a40| 53 79 73 74 65 6d 73 20 | 70 72 6f 74 6f 63 6f 6c |Systems |protocol|
|00002a50| 20 70 61 63 6b 65 74 0a | 20 20 20 20 2a 2f 0a 20 | packet.| */. |
|00002a60| 20 20 20 70 61 63 6b 65 | 74 5b 30 5d 20 3d 20 7e | packe|t[0] = ~|
|00002a70| 28 73 74 61 74 20 7c 20 | 30 78 66 38 29 20 7c 20 |(stat | |0xf8) | |
|00002a80| 30 78 38 30 3b 0a 20 20 | 20 20 2f 2a 20 6d 69 63 |0x80;. | /* mic|
|00002a90| 65 43 6f 6e 66 5b 4d 4f | 55 53 45 5f 4d 4f 55 53 |eConf[MO|USE_MOUS|
|00002aa0| 45 53 59 53 5d 2e 6d 70 | 2e 68 69 64 20 2a 2f 0a |ESYS].mp|.hid */.|
|00002ab0| 20 20 20 20 70 61 63 6b | 65 74 5b 31 5d 20 3d 20 | pack|et[1] = |
|00002ac0| 28 63 68 61 72 29 64 78 | 3b 0a 20 20 20 20 70 61 |(char)dx|;. pa|
|00002ad0| 63 6b 65 74 5b 33 5d 20 | 3d 20 30 3b 0a 20 20 20 |cket[3] |= 0;. |
|00002ae0| 20 70 61 63 6b 65 74 5b | 32 5d 20 3d 20 28 63 68 | packet[|2] = (ch|
|00002af0| 61 72 29 2d 64 79 3b 0a | 20 20 20 20 70 61 63 6b |ar)-dy;.| pack|
|00002b00| 65 74 5b 34 5d 20 3d 20 | 30 3b 0a 0a 23 69 66 64 |et[4] = |0;..#ifd|
|00002b10| 65 66 09 44 45 42 55 47 | 0a 20 20 20 20 70 72 69 |ef.DEBUG|. pri|
|00002b20| 6e 74 66 28 22 4c 3a 25 | 32 64 20 4e 3a 25 30 32 |ntf("L:%|2d N:%02|
|00002b30| 58 20 4c 3a 25 30 32 58 | 20 22 2c 20 6c 65 6e 2c |X L:%02X| ", len,|
|00002b40| 20 6e 6f 77 2c 20 6c 61 | 73 74 29 3b 0a 23 65 6e | now, la|st);.#en|
|00002b50| 64 69 66 0a 23 69 66 64 | 65 66 09 44 45 42 55 47 |dif.#ifd|ef.DEBUG|
|00002b60| 0a 20 20 20 20 70 72 69 | 6e 74 66 28 22 57 31 3a |. pri|ntf("W1:|
|00002b70| 53 3d 25 30 32 58 3a 25 | 30 32 58 20 25 30 32 58 |S=%02X:%|02X %02X|
|00002b80| 20 25 30 32 58 20 25 30 | 32 58 20 25 30 32 58 5c | %02X %0|2X %02X\|
|00002b90| 6e 22 2c 0a 09 20 20 20 | 28 7e 70 61 63 6b 65 74 |n",.. |(~packet|
|00002ba0| 5b 30 5d 29 20 26 20 30 | 78 30 37 2c 20 70 61 63 |[0]) & 0|x07, pac|
|00002bb0| 6b 65 74 5b 30 5d 2c 0a | 09 20 20 20 70 61 63 6b |ket[0],.|. pack|
|00002bc0| 65 74 5b 31 5d 2c 20 70 | 61 63 6b 65 74 5b 32 5d |et[1], p|acket[2]|
|00002bd0| 2c 20 70 61 63 6b 65 74 | 5b 33 5d 2c 20 70 61 63 |, packet|[3], pac|
|00002be0| 6b 65 74 5b 34 5d 29 3b | 0a 23 65 6e 64 69 66 0a |ket[4]);|.#endif.|
|00002bf0| 20 20 20 20 6c 61 73 74 | 20 3d 20 28 6e 6f 77 20 | last| = (now |
|00002c00| 3c 3c 20 34 29 20 7c 20 | 73 74 61 74 3b 0a 20 20 |<< 4) | |stat;. |
|00002c10| 20 20 77 72 69 74 65 28 | 6d 73 46 69 66 6f 2c 20 | write(|msFifo, |
|00002c20| 70 61 63 6b 65 74 2c 20 | 35 29 3b 0a 0a 20 20 20 |packet, |5);.. |
|00002c30| 20 2f 2a 0a 20 20 20 20 | 20 20 20 72 65 6c 65 61 | /*. | relea|
|00002c40| 73 65 64 20 3d 3d 20 54 | 52 55 45 20 69 66 20 61 |sed == T|RUE if a|
|00002c50| 6e 64 20 6f 6e 6c 79 20 | 69 66 20 62 75 74 74 6f |nd only |if butto|
|00002c60| 6e 20 69 73 20 72 65 6c | 65 61 73 65 64 20 69 6e |n is rel|eased in|
|00002c70| 20 65 6d 75 20 6d 6f 64 | 65 0a 20 20 20 20 2a 2f | emu mod|e. */|
|00002c80| 0a 20 20 20 20 69 66 20 | 28 72 65 6c 65 61 73 65 |. if |(release|
|00002c90| 64 20 3d 3d 20 54 52 55 | 45 29 20 7b 0a 09 70 61 |d == TRU|E) {..pa|
|00002ca0| 63 6b 65 74 5b 30 5d 20 | 7c 3d 20 30 78 35 3b 0a |cket[0] ||= 0x5;.|
|00002cb0| 09 77 72 69 74 65 28 6d | 73 46 69 66 6f 2c 20 70 |.write(m|sFifo, p|
|00002cc0| 61 63 6b 65 74 2c 20 35 | 29 3b 0a 23 69 66 64 65 |acket, 5|);.#ifde|
|00002cd0| 66 09 44 45 42 55 47 0a | 20 20 20 20 70 72 69 6e |f.DEBUG.| prin|
|00002ce0| 74 66 28 22 4c 3a 25 32 | 64 20 4e 3a 25 30 32 58 |tf("L:%2|d N:%02X|
|00002cf0| 20 4c 3a 25 30 32 58 20 | 22 2c 20 6c 65 6e 2c 20 | L:%02X |", len, |
|00002d00| 6e 6f 77 2c 20 6c 61 73 | 74 29 3b 0a 23 65 6e 64 |now, las|t);.#end|
|00002d10| 69 66 0a 23 69 66 64 65 | 66 09 44 45 42 55 47 0a |if.#ifde|f.DEBUG.|
|00002d20| 20 20 20 20 70 72 69 6e | 74 66 28 22 57 32 3a 53 | prin|tf("W2:S|
|00002d30| 3d 25 30 32 58 3a 25 30 | 32 58 20 25 30 32 58 20 |=%02X:%0|2X %02X |
|00002d40| 25 30 32 58 20 25 30 32 | 58 20 25 30 32 58 5c 6e |%02X %02|X %02X\n|
|00002d50| 22 2c 0a 09 20 20 20 28 | 7e 70 61 63 6b 65 74 5b |",.. (|~packet[|
|00002d60| 30 5d 29 20 26 20 30 78 | 30 37 2c 20 70 61 63 6b |0]) & 0x|07, pack|
|00002d70| 65 74 5b 30 5d 2c 0a 09 | 20 20 20 70 61 63 6b 65 |et[0],..| packe|
|00002d80| 74 5b 31 5d 2c 20 70 61 | 63 6b 65 74 5b 32 5d 2c |t[1], pa|cket[2],|
|00002d90| 20 70 61 63 6b 65 74 5b | 33 5d 2c 20 70 61 63 6b | packet[|3], pack|
|00002da0| 65 74 5b 34 5d 29 3b 0a | 23 65 6e 64 69 66 0a 20 |et[4]);.|#endif. |
|00002db0| 20 20 20 7d 0a 7d 0a 0a | 73 74 61 74 69 63 0a 76 | }.}..|static.v|
|00002dc0| 6f 69 64 20 47 65 74 50 | 61 63 6b 65 74 28 73 74 |oid GetP|acket(st|
|00002dd0| 72 75 63 74 20 6d 6f 75 | 73 65 49 6e 66 6f 20 2a |ruct mou|seInfo *|
|00002de0| 6d 73 69 29 0a 7b 0a 20 | 20 20 20 73 74 61 74 69 |msi).{. | stati|
|00002df0| 63 20 75 5f 63 68 61 72 | 20 70 61 63 6b 65 74 5b |c u_char| packet[|
|00002e00| 4d 4f 55 53 45 5f 50 4b | 53 49 5a 45 5d 3b 0a 20 |MOUSE_PK|SIZE];. |
|00002e10| 20 20 20 69 6e 74 20 73 | 74 61 74 20 3d 20 30 2c | int s|tat = 0,|
|00002e20| 20 6c 65 6e 20 3d 20 30 | 3b 0a 20 20 20 20 75 5f | len = 0|;. u_|
|00002e30| 63 68 61 72 20 63 68 3b | 0a 0a 23 69 66 64 65 66 |char ch;|..#ifdef|
|00002e40| 09 54 48 52 4f 55 47 48 | 5f 4d 4f 55 53 45 53 59 |.THROUGH|_MOUSESY|
|00002e50| 53 0a 20 20 20 20 69 66 | 20 28 6d 73 69 2d 3e 74 |S. if| (msi->t|
|00002e60| 79 70 65 20 3d 3d 20 4d | 4f 55 53 45 5f 4d 4f 55 |ype == M|OUSE_MOU|
|00002e70| 53 45 53 59 53 29 20 7b | 0a 09 69 66 20 28 28 6c |SESYS) {|..if ((l|
|00002e80| 65 6e 20 3d 20 72 65 61 | 64 28 6d 73 69 2d 3e 66 |en = rea|d(msi->f|
|00002e90| 64 2c 20 70 61 63 6b 65 | 74 2c 20 4d 4f 55 53 45 |d, packe|t, MOUSE|
|00002ea0| 5f 50 4b 53 49 5a 45 29 | 29 20 3e 20 30 29 0a 09 |_PKSIZE)|) > 0)..|
|00002eb0| 20 20 20 20 77 72 69 74 | 65 28 6d 73 46 69 66 6f | writ|e(msFifo|
|00002ec0| 2c 20 70 61 63 6b 65 74 | 2c 20 6c 65 6e 29 3b 0a |, packet|, len);.|
|00002ed0| 09 72 65 74 75 72 6e 3b | 0a 20 20 20 20 7d 0a 23 |.return;|. }.#|
|00002ee0| 65 6e 64 69 66 0a 20 20 | 20 20 77 68 69 6c 65 20 |endif. | while |
|00002ef0| 28 72 65 61 64 28 6d 73 | 69 2d 3e 66 64 2c 20 26 |(read(ms|i->fd, &|
|00002f00| 63 68 2c 20 31 29 20 3e | 20 30 29 20 7b 0a 09 6c |ch, 1) >| 0) {..l|
|00002f10| 65 6e 20 2b 2b 3b 0a 23 | 69 66 64 65 66 09 44 45 |en ++;.#|ifdef.DE|
|00002f20| 42 55 47 0a 2f 2a 09 70 | 72 69 6e 74 66 28 22 25 |BUG./*.p|rintf("%|
|00002f30| 30 32 58 28 25 30 32 64 | 29 20 22 2c 20 63 68 2c |02X(%02d|) ", ch,|
|00002f40| 20 73 74 61 74 29 3b 2a | 2f 0a 09 66 66 6c 75 73 | stat);*|/..fflus|
|00002f50| 68 28 73 74 64 6f 75 74 | 29 3b 0a 23 65 6e 64 69 |h(stdout|);.#endi|
|00002f60| 66 0a 09 69 66 20 28 21 | 73 74 61 74 29 20 7b 0a |f..if (!|stat) {.|
|00002f70| 09 20 20 20 20 69 66 20 | 28 28 63 68 20 26 20 6d |. if |((ch & m|
|00002f80| 73 69 2d 3e 6d 70 2e 68 | 6d 61 73 6b 29 20 3d 3d |si->mp.h|mask) ==|
|00002f90| 20 6d 73 69 2d 3e 6d 70 | 2e 68 69 64 29 20 7b 0a | msi->mp|.hid) {.|
|00002fa0| 09 09 70 61 63 6b 65 74 | 5b 30 5d 20 3d 20 63 68 |..packet|[0] = ch|
|00002fb0| 3b 0a 09 09 73 74 61 74 | 20 3d 20 31 3b 0a 09 20 |;...stat| = 1;.. |
|00002fc0| 20 20 20 7d 20 65 6c 73 | 65 20 69 66 20 28 6d 73 | } els|e if (ms|
|00002fd0| 69 2d 3e 6e 6f 65 6d 75 | 20 26 26 20 6d 73 69 2d |i->noemu| && msi-|
|00002fe0| 3e 74 79 70 65 20 3d 3d | 20 4d 4f 55 53 45 5f 4d |>type ==| MOUSE_M|
|00002ff0| 49 43 52 4f 53 4f 46 54 | 29 20 7b 0a 09 09 69 66 |ICROSOFT|) {...if|
|00003000| 20 28 28 63 68 20 26 20 | 7e 30 78 32 33 29 20 3d | ((ch & |~0x23) =|
|00003010| 3d 20 30 29 20 7b 0a 09 | 09 20 20 20 20 70 61 63 |= 0) {..|. pac|
|00003020| 6b 65 74 5b 33 5d 20 3d | 20 28 63 68 20 26 20 30 |ket[3] =| (ch & 0|
|00003030| 78 32 30 29 20 3e 3e 20 | 34 3b 0a 09 09 20 20 20 |x20) >> |4;... |
|00003040| 20 43 6f 6e 76 65 72 74 | 50 72 6f 74 6f 63 6f 6c | Convert|Protocol|
|00003050| 28 6d 73 69 2c 20 70 61 | 63 6b 65 74 2c 20 6c 65 |(msi, pa|cket, le|
|00003060| 6e 29 3b 0a 09 09 20 20 | 20 20 77 72 69 74 65 28 |n);... | write(|
|00003070| 6d 73 46 69 66 6f 2c 20 | 70 61 63 6b 65 74 2c 20 |msFifo, |packet, |
|00003080| 35 29 3b 0a 09 09 20 20 | 20 20 6c 65 6e 20 3d 20 |5);... | len = |
|00003090| 30 3b 0a 09 09 20 20 20 | 20 62 72 65 61 6b 3b 0a |0;... | break;.|
|000030a0| 09 09 7d 0a 09 20 20 20 | 20 7d 0a 09 20 20 20 20 |..}.. | }.. |
|000030b0| 63 6f 6e 74 69 6e 75 65 | 3b 0a 09 7d 0a 09 69 66 |continue|;..}..if|
|000030c0| 20 28 6d 73 69 2d 3e 74 | 79 70 65 20 21 3d 20 4d | (msi->t|ype != M|
|000030d0| 4f 55 53 45 5f 50 53 32 | 0a 09 20 20 20 20 26 26 |OUSE_PS2|.. &&|
|000030e0| 20 28 28 63 68 20 26 20 | 6d 73 69 2d 3e 6d 70 2e | ((ch & |msi->mp.|
|000030f0| 64 6d 61 73 6b 29 20 7c | 7c 20 63 68 20 3d 3d 20 |dmask) ||| ch == |
|00003100| 30 78 38 30 29 29 20 7b | 0a 09 20 20 20 20 6c 65 |0x80)) {|.. le|
|00003110| 6e 20 3d 20 73 74 61 74 | 20 3d 20 30 3b 0a 09 20 |n = stat| = 0;.. |
|00003120| 20 20 20 63 6f 6e 74 69 | 6e 75 65 3b 0a 09 7d 0a | conti|nue;..}.|
|00003130| 09 70 61 63 6b 65 74 5b | 73 74 61 74 5d 20 3d 20 |.packet[|stat] = |
|00003140| 63 68 3b 0a 09 73 74 61 | 74 20 2b 2b 3b 0a 09 69 |ch;..sta|t ++;..i|
|00003150| 66 20 28 73 74 61 74 20 | 3d 3d 20 6d 73 69 2d 3e |f (stat |== msi->|
|00003160| 6d 70 2e 6c 65 6e 29 20 | 7b 0a 09 20 20 20 20 43 |mp.len) |{.. C|
|00003170| 6f 6e 76 65 72 74 50 72 | 6f 74 6f 63 6f 6c 28 6d |onvertPr|otocol(m|
|00003180| 73 69 2c 20 70 61 63 6b | 65 74 2c 20 6c 65 6e 29 |si, pack|et, len)|
|00003190| 3b 0a 09 20 20 20 20 6c | 65 6e 20 3d 20 73 74 61 |;.. l|en = sta|
|000031a0| 74 20 3d 20 30 3b 0a 09 | 20 20 20 20 62 72 65 61 |t = 0;..| brea|
|000031b0| 6b 3b 0a 09 7d 0a 20 20 | 20 20 7d 0a 7d 0a 0a 76 |k;..}. | }.}..v|
|000031c0| 6f 69 64 20 53 65 6c 65 | 63 74 69 6f 6e 28 69 6e |oid Sele|ction(in|
|000031d0| 74 20 6e 75 6d 4d 6f 75 | 73 65 29 0a 7b 0a 20 20 |t numMou|se).{. |
|000031e0| 20 20 66 64 5f 73 65 74 | 20 72 65 61 64 46 64 73 | fd_set| readFds|
|000031f0| 2c 20 6f 72 67 52 65 61 | 64 46 64 73 3b 0a 20 20 |, orgRea|dFds;. |
|00003200| 20 20 69 6e 74 09 69 3b | 0a 20 20 20 20 69 6e 74 | int.i;|. int|
|00003210| 20 6e 75 6d 46 64 73 3b | 0a 0a 20 20 20 20 46 44 | numFds;|.. FD|
|00003220| 5f 5a 45 52 4f 28 26 6f | 72 67 52 65 61 64 46 64 |_ZERO(&o|rgReadFd|
|00003230| 73 29 3b 0a 20 20 20 20 | 66 6f 72 20 28 69 20 3d |s);. |for (i =|
|00003240| 20 30 3b 20 69 20 3c 20 | 6e 75 6d 4d 6f 75 73 65 | 0; i < |numMouse|
|00003250| 3b 20 69 20 2b 2b 29 20 | 7b 0a 09 46 44 5f 53 45 |; i ++) |{..FD_SE|
|00003260| 54 28 6d 73 49 6e 66 6f | 5b 69 5d 2e 66 64 2c 20 |T(msInfo|[i].fd, |
|00003270| 26 6f 72 67 52 65 61 64 | 46 64 73 29 3b 0a 09 69 |&orgRead|Fds);..i|
|00003280| 66 20 28 6e 75 6d 46 64 | 73 20 3c 20 6d 73 49 6e |f (numFd|s < msIn|
|00003290| 66 6f 5b 69 5d 2e 66 64 | 29 20 6e 75 6d 46 64 73 |fo[i].fd|) numFds|
|000032a0| 20 3d 20 6d 73 49 6e 66 | 6f 5b 69 5d 2e 66 64 3b | = msInf|o[i].fd;|
|000032b0| 0a 20 20 20 20 7d 0a 20 | 20 20 20 6e 75 6d 46 64 |. }. | numFd|
|000032c0| 73 20 2b 2b 3b 0a 20 20 | 20 20 77 68 69 6c 65 20 |s ++;. | while |
|000032d0| 28 31 29 20 7b 0a 09 69 | 6e 74 20 72 65 74 3b 0a |(1) {..i|nt ret;.|
|000032e0| 09 72 65 61 64 46 64 73 | 20 3d 20 6f 72 67 52 65 |.readFds| = orgRe|
|000032f0| 61 64 46 64 73 3b 0a 09 | 72 65 74 20 3d 20 73 65 |adFds;..|ret = se|
|00003300| 6c 65 63 74 28 6e 75 6d | 46 64 73 2c 20 26 72 65 |lect(num|Fds, &re|
|00003310| 61 64 46 64 73 2c 20 4e | 55 4c 4c 2c 20 4e 55 4c |adFds, N|ULL, NUL|
|00003320| 4c 2c 20 4e 55 4c 4c 29 | 3b 0a 09 69 66 20 28 72 |L, NULL)|;..if (r|
|00003330| 65 74 20 3c 20 30 20 26 | 26 20 65 72 72 6e 6f 20 |et < 0 &|& errno |
|00003340| 3d 3d 20 45 49 4e 54 52 | 29 20 7b 0a 23 69 66 64 |== EINTR|) {.#ifd|
|00003350| 65 66 09 44 45 42 55 47 | 0a 09 20 20 20 20 70 72 |ef.DEBUG|.. pr|
|00003360| 69 6e 74 66 28 22 45 49 | 4e 54 52 5c 6e 22 29 3b |intf("EI|NTR\n");|
|00003370| 0a 23 65 6e 64 69 66 0a | 09 20 20 20 20 65 72 72 |.#endif.|. err|
|00003380| 6e 6f 20 3d 20 30 3b 0a | 09 20 20 20 20 63 6f 6e |no = 0;.|. con|
|00003390| 74 69 6e 75 65 3b 0a 09 | 7d 0a 09 66 6f 72 20 28 |tinue;..|}..for (|
|000033a0| 69 20 3d 20 30 3b 20 69 | 20 3c 20 6e 75 6d 4d 6f |i = 0; i| < numMo|
|000033b0| 75 73 65 3b 20 69 20 2b | 2b 29 20 7b 0a 09 20 20 |use; i +|+) {.. |
|000033c0| 20 20 69 66 20 28 46 44 | 5f 49 53 53 45 54 28 6d | if (FD|_ISSET(m|
|000033d0| 73 49 6e 66 6f 5b 69 5d | 2e 66 64 2c 20 26 72 65 |sInfo[i]|.fd, &re|
|000033e0| 61 64 46 64 73 29 29 20 | 7b 0a 09 09 47 65 74 50 |adFds)) |{...GetP|
|000033f0| 61 63 6b 65 74 28 26 6d | 73 49 6e 66 6f 5b 69 5d |acket(&m|sInfo[i]|
|00003400| 29 3b 0a 09 20 20 20 20 | 7d 0a 09 7d 0a 20 20 20 |);.. |}..}. |
|00003410| 20 7d 0a 7d 0a 00 00 00 | 00 00 00 00 00 00 00 00 | }.}....|........|
|00003420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003460| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003470| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003480| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003490| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003600| 4d 75 6c 74 69 4d 6f 75 | 73 65 2f 6d 61 69 6e 2e |MultiMou|se/main.|
|00003610| 63 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |c.......|........|
|00003620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003660| 00 00 00 00 31 30 30 36 | 34 34 20 00 20 20 20 31 |....1006|44 . 1|
|00003670| 35 31 20 00 20 20 20 31 | 34 34 20 00 20 20 20 20 |51 . 1|44 . |
|00003680| 20 20 31 30 30 34 34 20 | 20 35 37 31 36 31 34 36 | 10044 | 5716146|
|00003690| 37 31 33 20 20 31 32 35 | 34 30 00 20 30 00 00 00 |713 125|40. 0...|
|000036a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000036b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000036c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000036d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000036e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000036f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003700| 00 75 73 74 61 72 20 20 | 00 6d 61 6e 61 62 65 00 |.ustar |.manabe.|
|00003710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003720| 00 00 00 00 00 00 00 00 | 00 64 73 6c 00 00 00 00 |........|.dsl....|
|00003730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000037a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000037b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000037c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000037d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000037e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000037f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003800| 2f 2a 0a 09 4d 75 6c 74 | 69 4d 6f 75 73 65 20 2d |/*..Mult|iMouse -|
|00003810| 20 62 69 6e 64 20 4d 55 | 4c 54 49 70 6c 65 20 6d | bind MU|LTIple m|
|00003820| 69 63 65 20 69 6e 74 6f | 20 61 20 4d 4f 55 53 45 |ice into| a MOUSE|
|00003830| 20 2d 0a 09 43 6f 70 79 | 72 69 67 68 74 20 28 43 | -..Copy|right (C|
|00003840| 29 20 31 39 39 35 20 54 | 61 6b 61 73 68 69 20 4d |) 1995 T|akashi M|
|00003850| 41 4e 41 42 45 20 28 6d | 61 6e 61 62 65 40 70 61 |ANABE (m|anabe@pa|
|00003860| 70 69 6c 69 6f 2e 74 75 | 74 69 63 73 2e 74 75 74 |pilio.tu|tics.tut|
|00003870| 2e 61 63 2e 6a 70 29 0a | 0a 09 4d 75 6c 74 69 4d |.ac.jp).|..MultiM|
|00003880| 6f 75 73 65 20 69 73 20 | 66 72 65 65 20 73 6f 66 |ouse is |free sof|
|00003890| 74 77 61 72 65 3b 20 79 | 6f 75 20 63 61 6e 20 72 |tware; y|ou can r|
|000038a0| 65 64 69 73 74 72 69 62 | 75 74 65 20 69 74 20 61 |edistrib|ute it a|
|000038b0| 6e 64 2f 6f 72 20 6d 6f | 64 69 66 79 0a 09 69 74 |nd/or mo|dify..it|
|000038c0| 20 75 6e 64 65 72 20 74 | 68 65 20 74 65 72 6d 73 | under t|he terms|
|000038d0| 20 6f 66 20 74 68 65 20 | 47 4e 55 20 47 65 6e 65 | of the |GNU Gene|
|000038e0| 72 61 6c 20 50 75 62 6c | 69 63 20 4c 69 63 65 6e |ral Publ|ic Licen|
|000038f0| 73 65 20 61 73 20 70 75 | 62 6c 69 73 68 65 64 0a |se as pu|blished.|
|00003900| 09 62 79 20 74 68 65 20 | 46 72 65 65 20 53 6f 66 |.by the |Free Sof|
|00003910| 74 77 61 72 65 20 46 6f | 75 6e 64 61 74 69 6f 6e |tware Fo|undation|
|00003920| 3b 20 65 69 74 68 65 72 | 20 76 65 72 73 69 6f 6e |; either| version|
|00003930| 20 32 20 6f 66 20 74 68 | 65 20 4c 69 63 65 6e 73 | 2 of th|e Licens|
|00003940| 65 2c 20 6f 72 0a 09 28 | 61 74 20 79 6f 75 72 20 |e, or..(|at your |
|00003950| 6f 70 74 69 6f 6e 29 20 | 61 6e 79 20 6c 61 74 65 |option) |any late|
|00003960| 72 20 76 65 72 73 69 6f | 6e 2e 0a 0a 09 4d 75 6c |r versio|n....Mul|
|00003970| 74 69 4d 6f 75 73 65 20 | 69 73 20 64 69 73 74 72 |tiMouse |is distr|
|00003980| 69 62 75 74 65 64 20 69 | 6e 20 74 68 65 20 68 6f |ibuted i|n the ho|
|00003990| 70 65 20 74 68 61 74 20 | 69 74 20 77 69 6c 6c 20 |pe that |it will |
|000039a0| 62 65 20 75 73 65 66 75 | 6c 2c 0a 09 62 75 74 20 |be usefu|l,..but |
|000039b0| 57 49 54 48 4f 55 54 20 | 41 4e 59 20 57 41 52 52 |WITHOUT |ANY WARR|
|000039c0| 41 4e 54 59 3b 20 77 69 | 74 68 6f 75 74 20 65 76 |ANTY; wi|thout ev|
|000039d0| 65 6e 20 74 68 65 20 69 | 6d 70 6c 69 65 64 20 77 |en the i|mplied w|
|000039e0| 61 72 72 61 6e 74 79 20 | 6f 66 0a 09 4d 45 52 43 |arranty |of..MERC|
|000039f0| 48 41 4e 54 41 42 49 4c | 49 54 59 20 6f 72 20 46 |HANTABIL|ITY or F|
|00003a00| 49 54 4e 45 53 53 20 46 | 4f 52 20 41 20 50 41 52 |ITNESS F|OR A PAR|
|00003a10| 54 49 43 55 4c 41 52 20 | 50 55 52 50 4f 53 45 2e |TICULAR |PURPOSE.|
|00003a20| 0a 09 53 65 65 20 74 68 | 65 20 47 4e 55 20 47 65 |..See th|e GNU Ge|
|00003a30| 6e 65 72 61 6c 20 50 75 | 62 6c 69 63 20 4c 69 63 |neral Pu|blic Lic|
|00003a40| 65 6e 73 65 20 66 6f 72 | 20 6d 6f 72 65 20 64 65 |ense for| more de|
|00003a50| 74 61 69 6c 73 2e 0a 0a | 09 59 6f 75 20 73 68 6f |tails...|.You sho|
|00003a60| 75 6c 64 20 68 61 76 65 | 20 72 65 63 65 69 76 65 |uld have| receive|
|00003a70| 64 20 61 20 63 6f 70 79 | 20 6f 66 20 74 68 65 20 |d a copy| of the |
|00003a80| 47 4e 55 20 47 65 6e 65 | 72 61 6c 20 50 75 62 6c |GNU Gene|ral Publ|
|00003a90| 69 63 20 4c 69 63 65 6e | 73 65 0a 09 61 6c 6f 6e |ic Licen|se..alon|
|00003aa0| 67 20 77 69 74 68 20 74 | 68 69 73 20 70 72 6f 67 |g with t|his prog|
|00003ab0| 72 61 6d 3b 20 69 66 20 | 6e 6f 74 2c 20 77 72 69 |ram; if |not, wri|
|00003ac0| 74 65 20 74 6f 20 74 68 | 65 20 46 72 65 65 20 53 |te to th|e Free S|
|00003ad0| 6f 66 74 77 61 72 65 0a | 09 46 6f 75 6e 64 61 74 |oftware.|.Foundat|
|00003ae0| 69 6f 6e 2c 20 49 6e 63 | 2e 2c 20 36 37 35 20 4d |ion, Inc|., 675 M|
|00003af0| 61 73 73 20 41 76 65 2c | 20 43 61 6d 62 72 69 64 |ass Ave,| Cambrid|
|00003b00| 67 65 2c 20 4d 41 20 30 | 32 31 33 39 2c 20 55 53 |ge, MA 0|2139, US|
|00003b10| 41 2e 0a 2a 2f 0a 0a 23 | 69 6e 63 6c 75 64 65 20 |A..*/..#|include |
|00003b20| 3c 73 74 64 69 6f 2e 68 | 3e 0a 23 69 6e 63 6c 75 |<stdio.h|>.#inclu|
|00003b30| 64 65 20 3c 66 63 6e 74 | 6c 2e 68 3e 0a 23 69 6e |de <fcnt|l.h>.#in|
|00003b40| 63 6c 75 64 65 20 3c 75 | 6e 69 73 74 64 2e 68 3e |clude <u|nistd.h>|
|00003b50| 0a 23 69 6e 63 6c 75 64 | 65 20 3c 65 72 72 6e 6f |.#includ|e <errno|
|00003b60| 2e 68 3e 0a 23 69 6e 63 | 6c 75 64 65 20 3c 74 65 |.h>.#inc|lude <te|
|00003b70| 72 6d 69 6f 73 2e 68 3e | 0a 23 69 6e 63 6c 75 64 |rmios.h>|.#includ|
|00003b80| 65 20 3c 73 79 73 2f 74 | 79 70 65 73 2e 68 3e 0a |e <sys/t|ypes.h>.|
|00003b90| 23 69 6e 63 6c 75 64 65 | 20 3c 73 79 73 2f 74 69 |#include| <sys/ti|
|00003ba0| 6d 65 2e 68 3e 0a 23 69 | 6e 63 6c 75 64 65 20 3c |me.h>.#i|nclude <|
|00003bb0| 73 69 67 6e 61 6c 2e 68 | 3e 0a 0a 23 69 6e 63 6c |signal.h|>..#incl|
|00003bc0| 75 64 65 20 22 6d 75 6d | 73 65 2e 68 22 0a 0a 73 |ude "mum|se.h"..s|
|00003bd0| 74 61 74 69 63 0a 76 6f | 69 64 20 49 6e 69 74 4d |tatic.vo|id InitM|
|00003be0| 6f 75 73 65 28 69 6e 74 | 20 6d 66 64 2c 20 75 5f |ouse(int| mfd, u_|
|00003bf0| 73 68 6f 72 74 20 62 61 | 75 64 2c 20 75 5f 73 68 |short ba|ud, u_sh|
|00003c00| 6f 72 74 20 63 66 6c 61 | 67 29 0a 7b 0a 20 20 20 |ort cfla|g).{. |
|00003c10| 20 73 74 72 75 63 74 20 | 74 65 72 6d 69 6f 73 20 | struct |termios |
|00003c20| 6d 69 6f 3b 0a 0a 20 20 | 20 20 74 63 67 65 74 61 |mio;.. | tcgeta|
|00003c30| 74 74 72 28 6d 66 64 2c | 20 26 6d 69 6f 29 3b 0a |ttr(mfd,| &mio);.|
|00003c40| 20 20 20 20 6d 69 6f 2e | 63 5f 69 66 6c 61 67 20 | mio.|c_iflag |
|00003c50| 3d 20 49 47 4e 42 52 4b | 20 7c 20 49 47 4e 50 41 |= IGNBRK| | IGNPA|
|00003c60| 52 3b 0a 20 20 20 20 6d | 69 6f 2e 63 5f 6f 66 6c |R;. m|io.c_ofl|
|00003c70| 61 67 20 3d 20 6d 69 6f | 2e 63 5f 6c 66 6c 61 67 |ag = mio|.c_lflag|
|00003c80| 20 3d 20 6d 69 6f 2e 63 | 5f 6c 69 6e 65 20 3d 20 | = mio.c|_line = |
|00003c90| 30 3b 0a 20 20 20 20 6d | 69 6f 2e 63 5f 63 63 5b |0;. m|io.c_cc[|
|00003ca0| 56 54 49 4d 45 5d 20 3d | 20 30 3b 0a 20 20 20 20 |VTIME] =| 0;. |
|00003cb0| 6d 69 6f 2e 63 5f 63 63 | 5b 56 4d 49 4e 5d 20 3d |mio.c_cc|[VMIN] =|
|00003cc0| 20 31 3b 0a 20 20 20 20 | 6d 69 6f 2e 63 5f 63 66 | 1;. |mio.c_cf|
|00003cd0| 6c 61 67 20 3d 20 63 66 | 6c 61 67 20 7c 20 62 61 |lag = cf|lag | ba|
|00003ce0| 75 64 3b 0a 20 20 20 20 | 74 63 73 65 74 61 74 74 |ud;. |tcsetatt|
|00003cf0| 72 28 6d 66 64 2c 20 54 | 43 53 41 46 4c 55 53 48 |r(mfd, T|CSAFLUSH|
|00003d00| 2c 20 26 6d 69 6f 29 3b | 0a 20 20 20 20 6d 69 6f |, &mio);|. mio|
|00003d10| 2e 63 5f 63 66 6c 61 67 | 20 3d 20 63 66 6c 61 67 |.c_cflag| = cflag|
|00003d20| 20 7c 20 42 31 32 30 30 | 3b 0a 20 20 20 20 77 72 | | B1200|;. wr|
|00003d30| 69 74 65 28 6d 66 64 2c | 20 22 2a 6e 22 2c 20 32 |ite(mfd,| "*n", 2|
|00003d40| 29 3b 0a 20 20 20 20 75 | 73 6c 65 65 70 28 31 30 |);. u|sleep(10|
|00003d50| 30 30 30 30 29 3b 0a 20 | 20 20 20 74 63 73 65 74 |0000);. | tcset|
|00003d60| 61 74 74 72 28 6d 66 64 | 2c 20 54 43 53 41 46 4c |attr(mfd|, TCSAFL|
|00003d70| 55 53 48 2c 20 26 6d 69 | 6f 29 3b 0a 7d 0a 0a 73 |USH, &mi|o);.}..s|
|00003d80| 74 61 74 69 63 0a 69 6e | 74 20 53 65 74 75 70 4d |tatic.in|t SetupM|
|00003d90| 6f 75 73 65 28 69 6e 74 | 20 61 72 67 63 2c 20 63 |ouse(int| argc, c|
|00003da0| 68 61 72 20 2a 2a 61 72 | 67 76 29 0a 7b 0a 20 20 |har **ar|gv).{. |
|00003db0| 20 20 69 6e 74 20 69 2c | 20 74 79 70 65 2c 20 66 | int i,| type, f|
|00003dc0| 64 2c 20 6e 2c 20 6e 6f | 65 6d 75 2c 20 6e 6f 64 |d, n, no|emu, nod|
|00003dd0| 61 65 6d 6f 6e 3d 30 2c | 20 6e 75 6d 3b 0a 0a 20 |aemon=0,| num;.. |
|00003de0| 20 20 20 73 74 72 75 63 | 74 20 6d 6f 75 73 65 43 | struc|t mouseC|
|00003df0| 6f 6e 66 20 7b 0a 09 63 | 6f 6e 73 74 20 63 68 61 |onf {..c|onst cha|
|00003e00| 72 20 2a 6e 61 6d 65 3b | 0a 09 69 6e 74 20 63 46 |r *name;|..int cF|
|00003e10| 6c 61 67 3b 0a 09 73 74 | 72 75 63 74 20 6d 6f 75 |lag;..st|ruct mou|
|00003e20| 73 65 50 72 6f 74 6f 63 | 6f 6c 20 6d 70 3b 0a 20 |seProtoc|ol mp;. |
|00003e30| 20 20 20 7d 20 6d 69 63 | 65 43 6f 6e 66 5b 5d 20 | } mic|eConf[] |
|00003e40| 3d 20 7b 0a 09 7b 22 4d | 69 63 72 6f 73 6f 66 74 |= {..{"M|icrosoft|
|00003e50| 22 2c 20 28 43 53 37 7c | 43 52 45 41 44 7c 43 4c |", (CS7||CREAD|CL|
|00003e60| 4f 43 41 4c 7c 48 55 50 | 43 4c 29 2c 0a 09 20 20 |OCAL|HUP|CL),.. |
|00003e70| 20 20 20 7b 30 78 34 30 | 2c 20 30 78 34 30 2c 20 | {0x40|, 0x40, |
|00003e80| 30 78 34 30 2c 20 33 7d | 7d 2c 0a 09 7b 22 42 75 |0x40, 3}|},..{"Bu|
|00003e90| 73 4d 6f 75 73 65 22 2c | 20 30 2c 0a 09 20 20 20 |sMouse",| 0,.. |
|00003ea0| 20 20 7b 30 78 66 38 2c | 20 30 78 38 30 2c 20 30 | {0xf8,| 0x80, 0|
|00003eb0| 78 30 30 2c 20 35 7d 7d | 2c 0a 09 7b 22 4d 6d 53 |x00, 5}}|,..{"MmS|
|00003ec0| 65 72 69 65 73 22 2c 20 | 28 43 53 38 7c 50 41 52 |eries", |(CS8|PAR|
|00003ed0| 45 4e 42 7c 50 41 52 4f | 44 44 7c 43 52 45 41 44 |ENB|PARO|DD|CREAD|
|00003ee0| 7c 43 4c 4f 43 41 4c 7c | 48 55 50 43 4c 29 2c 0a ||CLOCAL||HUPCL),.|
|00003ef0| 09 20 20 20 20 20 7b 30 | 78 65 30 2c 20 30 78 38 |. {0|xe0, 0x8|
|00003f00| 30 2c 20 30 78 38 30 2c | 20 33 7d 7d 2c 0a 09 7b |0, 0x80,| 3}},..{|
|00003f10| 22 4c 6f 67 69 74 65 63 | 68 22 2c 20 28 43 53 38 |"Logitec|h", (CS8|
|00003f20| 7c 43 53 54 4f 50 42 7c | 43 52 45 41 44 7c 43 4c ||CSTOPB||CREAD|CL|
|00003f30| 4f 43 41 4c 7c 48 55 50 | 43 4c 29 2c 0a 09 20 20 |OCAL|HUP|CL),.. |
|00003f40| 20 20 20 7b 30 78 65 30 | 2c 20 30 78 38 30 2c 20 | {0xe0|, 0x80, |
|00003f50| 30 78 38 30 2c 20 33 7d | 7d 2c 0a 09 7b 22 50 53 |0x80, 3}|},..{"PS|
|00003f60| 32 22 2c 20 30 2c 0a 09 | 20 20 20 20 20 7b 30 78 |2", 0,..| {0x|
|00003f70| 63 30 2c 20 30 78 30 30 | 2c 20 30 78 34 30 2c 20 |c0, 0x00|, 0x40, |
|00003f80| 33 7d 7d 2c 0a 09 7b 22 | 4d 6f 75 73 65 53 79 73 |3}},..{"|MouseSys|
|00003f90| 74 65 6d 73 22 2c 20 28 | 43 53 38 7c 43 53 54 4f |tems", (|CS8|CSTO|
|00003fa0| 50 42 7c 43 52 45 41 44 | 7c 43 4c 4f 43 41 4c 7c |PB|CREAD||CLOCAL||
|00003fb0| 48 55 50 43 4c 29 2c 0a | 09 20 20 20 20 20 7b 30 |HUPCL),.|. {0|
|00003fc0| 78 66 38 2c 20 30 78 38 | 30 2c 20 30 78 30 30 2c |xf8, 0x8|0, 0x00,|
|00003fd0| 20 35 7d 7d 0a 20 20 20 | 20 7d 3b 0a 0a 20 20 20 | 5}}. | };.. |
|00003fe0| 20 66 6f 72 20 28 6e 75 | 6d 20 3d 20 30 2c 20 69 | for (nu|m = 0, i|
|00003ff0| 20 3d 20 31 3b 20 69 20 | 3c 20 61 72 67 63 20 26 | = 1; i |< argc &|
|00004000| 26 20 6e 75 6d 20 3c 20 | 4d 41 58 5f 4d 49 43 45 |& num < |MAX_MICE|
|00004010| 3b 20 69 20 2b 2b 29 20 | 7b 0a 09 69 66 20 28 2a |; i ++) |{..if (*|
|00004020| 61 72 67 76 5b 69 5d 20 | 3d 3d 20 27 2d 27 29 20 |argv[i] |== '-') |
|00004030| 7b 0a 09 20 20 20 20 66 | 6f 72 20 28 74 79 70 65 |{.. f|or (type|
|00004040| 20 3d 20 30 3b 20 74 79 | 70 65 20 3c 20 4d 4f 55 | = 0; ty|pe < MOU|
|00004050| 53 45 5f 4e 4f 4d 4f 55 | 53 45 3b 20 74 79 70 65 |SE_NOMOU|SE; type|
|00004060| 20 2b 2b 29 20 7b 0a 09 | 09 69 6e 74 20 6c 65 6e | ++) {..|.int len|
|00004070| 3b 0a 09 09 63 68 61 72 | 20 2a 6e 61 6d 65 3b 0a |;...char| *name;.|
|00004080| 0a 09 09 6e 61 6d 65 20 | 3d 20 28 63 68 61 72 2a |...name |= (char*|
|00004090| 29 6d 69 63 65 43 6f 6e | 66 5b 74 79 70 65 5d 2e |)miceCon|f[type].|
|000040a0| 6e 61 6d 65 3b 0a 09 09 | 6c 65 6e 20 3d 20 73 74 |name;...|len = st|
|000040b0| 72 6c 65 6e 28 6e 61 6d | 65 29 3b 0a 09 09 69 66 |rlen(nam|e);...if|
|000040c0| 20 28 21 73 74 72 6e 63 | 61 73 65 63 6d 70 28 61 | (!strnc|asecmp(a|
|000040d0| 72 67 76 5b 69 5d 20 2b | 20 31 2c 20 6e 61 6d 65 |rgv[i] +| 1, name|
|000040e0| 2c 20 6c 65 6e 29 29 20 | 7b 0a 09 09 20 20 20 20 |, len)) |{... |
|000040f0| 69 66 20 28 21 28 6e 6f | 65 6d 75 20 3d 20 73 74 |if (!(no|emu = st|
|00004100| 72 63 61 73 65 63 6d 70 | 28 61 72 67 76 5b 69 5d |rcasecmp|(argv[i]|
|00004110| 20 2b 20 31 20 2b 20 6c | 65 6e 2c 20 22 2d 65 6d | + 1 + l|en, "-em|
|00004120| 75 22 29 29 29 0a 09 09 | 09 66 70 72 69 6e 74 66 |u")))...|.fprintf|
|00004130| 28 73 74 64 65 72 72 2c | 0a 09 09 09 09 22 20 2d |(stderr,|....." -|
|00004140| 2d 20 5c 22 25 73 5c 22 | 20 33 20 62 75 74 74 6f |- \"%s\"| 3 butto|
|00004150| 6e 73 20 65 6d 75 20 6d | 6f 64 65 2e 5c 6e 22 2c |ns emu m|ode.\n",|
|00004160| 0a 09 09 09 09 61 72 67 | 76 5b 69 5d 20 2b 20 31 |.....arg|v[i] + 1|
|00004170| 29 3b 0a 09 09 20 20 20 | 20 62 72 65 61 6b 3b 0a |);... | break;.|
|00004180| 09 09 7d 0a 09 20 20 20 | 20 7d 0a 09 7d 0a 09 69 |..}.. | }..}..i|
|00004190| 66 20 28 74 79 70 65 20 | 3c 20 4d 4f 55 53 45 5f |f (type |< MOUSE_|
|000041a0| 4e 4f 4d 4f 55 53 45 29 | 20 7b 0a 09 20 20 20 20 |NOMOUSE)| {.. |
|000041b0| 69 66 20 28 2b 2b 20 69 | 20 3e 3d 20 61 72 67 63 |if (++ i| >= argc|
|000041c0| 29 20 7b 0a 09 09 66 70 | 72 69 6e 74 66 28 73 74 |) {...fp|rintf(st|
|000041d0| 64 65 72 72 2c 20 22 20 | 2d 2d 20 4e 6f 20 64 65 |derr, " |-- No de|
|000041e0| 76 69 63 65 20 69 73 20 | 73 70 65 63 69 66 69 65 |vice is |specifie|
|000041f0| 64 20 66 6f 72 20 5c 22 | 25 73 5c 22 2e 5c 6e 22 |d for \"|%s\".\n"|
|00004200| 2c 0a 09 09 09 61 72 67 | 76 5b 69 2d 31 5d 29 3b |,....arg|v[i-1]);|
|00004210| 0a 09 09 63 6f 6e 74 69 | 6e 75 65 3b 0a 09 20 20 |...conti|nue;.. |
|00004220| 20 20 7d 0a 09 20 20 20 | 20 69 66 20 28 28 66 64 | }.. | if ((fd|
|00004230| 20 3d 20 6f 70 65 6e 28 | 61 72 67 76 5b 69 5d 2c | = open(|argv[i],|
|00004240| 20 4f 5f 52 44 4f 4e 4c | 59 29 29 20 3c 20 30 29 | O_RDONL|Y)) < 0)|
|00004250| 20 7b 0a 09 09 70 65 72 | 72 6f 72 28 61 72 67 76 | {...per|ror(argv|
|00004260| 5b 69 5d 29 3b 0a 09 09 | 66 70 72 69 6e 74 66 28 |[i]);...|fprintf(|
|00004270| 73 74 64 65 72 72 2c 20 | 22 20 2d 2d 20 6f 70 74 |stderr, |" -- opt|
|00004280| 69 6f 6e 20 5c 22 25 73 | 20 25 73 5c 22 20 69 73 |ion \"%s| %s\" is|
|00004290| 20 69 67 6e 6f 72 65 64 | 2e 5c 6e 22 2c 0a 09 09 | ignored|.\n",...|
|000042a0| 09 61 72 67 76 5b 69 2d | 31 5d 2c 20 61 72 67 76 |.argv[i-|1], argv|
|000042b0| 5b 69 5d 29 3b 0a 09 09 | 63 6f 6e 74 69 6e 75 65 |[i]);...|continue|
|000042c0| 3b 0a 09 20 20 20 20 7d | 0a 09 20 20 20 20 6d 73 |;.. }|.. ms|
|000042d0| 49 6e 66 6f 5b 6e 75 6d | 5d 2e 74 79 70 65 20 3d |Info[num|].type =|
|000042e0| 20 74 79 70 65 3b 0a 09 | 20 20 20 20 6d 73 49 6e | type;..| msIn|
|000042f0| 66 6f 5b 6e 75 6d 5d 2e | 6e 6f 65 6d 75 20 3d 20 |fo[num].|noemu = |
|00004300| 6e 6f 65 6d 75 3b 0a 09 | 20 20 20 20 6d 73 49 6e |noemu;..| msIn|
|00004310| 66 6f 5b 6e 75 6d 5d 2e | 66 64 20 3d 20 66 64 3b |fo[num].|fd = fd;|
|00004320| 0a 09 20 20 20 20 6d 73 | 49 6e 66 6f 5b 6e 75 6d |.. ms|Info[num|
|00004330| 5d 2e 6d 70 20 3d 20 6d | 69 63 65 43 6f 6e 66 5b |].mp = m|iceConf[|
|00004340| 74 79 70 65 5d 2e 6d 70 | 3b 0a 09 20 20 20 20 69 |type].mp|;.. i|
|00004350| 66 20 28 74 79 70 65 20 | 21 3d 20 4d 4f 55 53 45 |f (type |!= MOUSE|
|00004360| 5f 42 55 53 4d 4f 55 53 | 45 20 26 26 20 74 79 70 |_BUSMOUS|E && typ|
|00004370| 65 20 21 3d 20 4d 4f 55 | 53 45 5f 50 53 32 29 20 |e != MOU|SE_PS2) |
|00004380| 7b 0a 09 09 49 6e 69 74 | 4d 6f 75 73 65 28 66 64 |{...Init|Mouse(fd|
|00004390| 2c 20 42 39 36 30 30 2c | 20 6d 69 63 65 43 6f 6e |, B9600,| miceCon|
|000043a0| 66 5b 74 79 70 65 5d 2e | 63 46 6c 61 67 29 3b 0a |f[type].|cFlag);.|
|000043b0| 09 09 49 6e 69 74 4d 6f | 75 73 65 28 66 64 2c 20 |..InitMo|use(fd, |
|000043c0| 42 34 38 30 30 2c 20 6d | 69 63 65 43 6f 6e 66 5b |B4800, m|iceConf[|
|000043d0| 74 79 70 65 5d 2e 63 46 | 6c 61 67 29 3b 0a 09 09 |type].cF|lag);...|
|000043e0| 49 6e 69 74 4d 6f 75 73 | 65 28 66 64 2c 20 42 32 |InitMous|e(fd, B2|
|000043f0| 34 30 30 2c 20 6d 69 63 | 65 43 6f 6e 66 5b 74 79 |400, mic|eConf[ty|
|00004400| 70 65 5d 2e 63 46 6c 61 | 67 29 3b 0a 09 09 49 6e |pe].cFla|g);...In|
|00004410| 69 74 4d 6f 75 73 65 28 | 66 64 2c 20 42 31 32 30 |itMouse(|fd, B120|
|00004420| 30 2c 20 6d 69 63 65 43 | 6f 6e 66 5b 74 79 70 65 |0, miceC|onf[type|
|00004430| 5d 2e 63 46 6c 61 67 29 | 3b 0a 09 09 69 66 20 28 |].cFlag)|;...if (|
|00004440| 74 79 70 65 20 3d 3d 20 | 4d 4f 55 53 45 5f 4c 4f |type == |MOUSE_LO|
|00004450| 47 49 54 45 43 48 29 20 | 7b 0a 09 09 20 20 20 20 |GITECH) |{... |
|00004460| 77 72 69 74 65 28 66 64 | 2c 20 22 53 22 2c 20 31 |write(fd|, "S", 1|
|00004470| 29 3b 0a 09 09 20 20 20 | 20 49 6e 69 74 4d 6f 75 |);... | InitMou|
|00004480| 73 65 28 66 64 2c 20 42 | 31 32 30 30 2c 0a 09 09 |se(fd, B|1200,...|
|00004490| 09 20 20 20 20 20 20 43 | 53 38 7c 50 41 52 45 4e |. C|S8|PAREN|
|000044a0| 42 7c 50 41 52 4f 44 44 | 7c 43 52 45 41 44 7c 43 |B|PARODD||CREAD|C|
|000044b0| 4c 4f 43 41 4c 7c 48 55 | 50 43 4c 29 3b 0a 09 09 |LOCAL|HU|PCL);...|
|000044c0| 7d 0a 09 20 20 20 20 7d | 0a 09 20 20 20 20 77 72 |}.. }|.. wr|
|000044d0| 69 74 65 28 66 64 2c 20 | 22 51 22 2c 20 31 29 3b |ite(fd, |"Q", 1);|
|000044e0| 0a 09 20 20 20 20 6e 75 | 6d 20 2b 2b 3b 0a 09 7d |.. nu|m ++;..}|
|000044f0| 0a 09 65 6c 73 65 20 69 | 66 20 28 21 73 74 72 63 |..else i|f (!strc|
|00004500| 61 73 65 63 6d 70 28 61 | 72 67 76 5b 69 5d 2c 20 |asecmp(a|rgv[i], |
|00004510| 22 2d 6e 6f 64 61 65 6d | 6f 6e 22 29 29 20 6e 6f |"-nodaem|on")) no|
|00004520| 64 61 65 6d 6f 6e 20 3d | 20 31 3b 0a 20 20 20 20 |daemon =| 1;. |
|00004530| 7d 0a 20 20 20 20 69 66 | 20 28 6e 75 6d 20 3c 3d |}. if| (num <=|
|00004540| 20 30 29 20 7b 0a 09 66 | 70 72 69 6e 74 66 28 73 | 0) {..f|printf(s|
|00004550| 74 64 65 72 72 2c 20 22 | 55 73 61 67 65 3a 20 25 |tderr, "|Usage: %|
|00004560| 73 20 7b 2d 3c 70 72 6f | 74 6f 63 6f 6c 3e 20 3c |s {-<pro|tocol> <|
|00004570| 64 65 76 3e 7d 5c 6e 22 | 0a 09 09 22 20 20 20 70 |dev>}\n"|..." p|
|00004580| 72 6f 74 6f 63 6f 6c 28 | 73 29 3a 22 2c 0a 09 09 |rotocol(|s):",...|
|00004590| 61 72 67 76 5b 30 5d 29 | 3b 0a 09 66 6f 72 20 28 |argv[0])|;..for (|
|000045a0| 74 79 70 65 20 3d 20 30 | 3b 20 74 79 70 65 20 3c |type = 0|; type <|
|000045b0| 20 4d 4f 55 53 45 5f 4e | 4f 4d 4f 55 53 45 3b 20 | MOUSE_N|OMOUSE; |
|000045c0| 74 79 70 65 20 2b 2b 29 | 0a 09 20 20 20 20 66 70 |type ++)|.. fp|
|000045d0| 72 69 6e 74 66 28 73 74 | 64 65 72 72 2c 20 22 20 |rintf(st|derr, " |
|000045e0| 25 73 22 2c 20 6d 69 63 | 65 43 6f 6e 66 5b 74 79 |%s", mic|eConf[ty|
|000045f0| 70 65 5d 2e 6e 61 6d 65 | 29 3b 0a 09 66 70 72 69 |pe].name|);..fpri|
|00004600| 6e 74 66 28 73 74 64 65 | 72 72 2c 20 22 5c 6e 22 |ntf(stde|rr, "\n"|
|00004610| 29 3b 0a 09 72 65 74 75 | 72 6e 28 45 4f 46 29 3b |);..retu|rn(EOF);|
|00004620| 0a 20 20 20 20 7d 0a 20 | 20 20 20 6d 73 46 69 66 |. }. | msFif|
|00004630| 6f 20 3d 20 6f 70 65 6e | 28 4d 4f 55 53 45 5f 46 |o = open|(MOUSE_F|
|00004640| 49 46 4f 2c 20 4f 5f 52 | 44 57 52 7c 4f 5f 4e 4f |IFO, O_R|DWR|O_NO|
|00004650| 4e 42 4c 4f 43 4b 29 3b | 0a 20 20 20 20 69 66 20 |NBLOCK);|. if |
|00004660| 28 21 6e 6f 64 61 65 6d | 6f 6e 20 26 26 20 4d 61 |(!nodaem|on && Ma|
|00004670| 6b 65 4d 65 44 61 65 6d | 6f 6e 28 29 29 20 72 65 |keMeDaem|on()) re|
|00004680| 74 75 72 6e 28 45 4f 46 | 29 3b 0a 20 20 20 20 72 |turn(EOF|);. r|
|00004690| 65 74 75 72 6e 28 6e 75 | 6d 29 3b 0a 7d 0a 0a 69 |eturn(nu|m);.}..i|
|000046a0| 6e 74 20 6d 61 69 6e 28 | 69 6e 74 20 61 72 67 63 |nt main(|int argc|
|000046b0| 2c 20 63 68 61 72 20 2a | 2a 61 72 67 76 29 0a 7b |, char *|*argv).{|
|000046c0| 0a 20 20 20 20 69 6e 74 | 20 6e 75 6d 4d 6f 75 73 |. int| numMous|
|000046d0| 65 3b 0a 0a 20 20 20 20 | 66 70 72 69 6e 74 66 28 |e;.. |fprintf(|
|000046e0| 73 74 64 65 72 72 2c 20 | 22 4d 75 6c 74 69 4d 6f |stderr, |"MultiMo|
|000046f0| 75 73 65 20 76 65 72 73 | 69 6f 6e 20 22 56 45 52 |use vers|ion "VER|
|00004700| 53 49 4f 4e 22 5c 6e 22 | 29 3b 0a 20 20 20 20 69 |SION"\n"|);. i|
|00004710| 66 20 28 21 61 63 63 65 | 73 73 28 50 41 54 48 5f |f (!acce|ss(PATH_|
|00004720| 50 49 44 2c 20 46 5f 4f | 4b 29 29 20 7b 0a 09 66 |PID, F_O|K)) {..f|
|00004730| 70 72 69 6e 74 66 28 73 | 74 64 65 72 72 2c 20 22 |printf(s|tderr, "|
|00004740| 20 2d 2d 20 4d 75 6c 74 | 69 4d 6f 75 73 65 20 69 | -- Mult|iMouse i|
|00004750| 73 20 61 6c 72 65 61 64 | 79 20 72 75 6e 6e 69 6e |s alread|y runnin|
|00004760| 67 5c 6e 22 0a 09 09 22 | 20 20 20 20 6f 72 20 22 |g\n"..."| or "|
|00004770| 50 41 54 48 5f 50 49 44 | 22 20 69 73 6e 27 74 20 |PATH_PID|" isn't |
|00004780| 72 65 6d 6f 76 65 64 2e | 5c 6e 22 29 3b 0a 09 72 |removed.|\n");..r|
|00004790| 65 74 75 72 6e 28 45 4f | 46 29 3b 0a 20 20 20 20 |eturn(EO|F);. |
|000047a0| 7d 0a 20 20 20 20 6e 75 | 6d 4d 6f 75 73 65 20 3d |}. nu|mMouse =|
|000047b0| 20 53 65 74 75 70 4d 6f | 75 73 65 28 61 72 67 63 | SetupMo|use(argc|
|000047c0| 2c 20 61 72 67 76 29 3b | 0a 20 20 20 20 69 66 20 |, argv);|. if |
|000047d0| 28 6e 75 6d 4d 6f 75 73 | 65 20 3c 20 30 29 20 65 |(numMous|e < 0) e|
|000047e0| 78 69 74 28 45 4f 46 29 | 3b 0a 20 20 20 20 53 65 |xit(EOF)|;. Se|
|000047f0| 74 53 69 67 6e 61 6c 73 | 28 29 3b 0a 20 20 20 20 |tSignals|();. |
|00004800| 53 65 6c 65 63 74 69 6f | 6e 28 6e 75 6d 4d 6f 75 |Selectio|n(numMou|
|00004810| 73 65 29 3b 0a 20 20 20 | 20 65 78 69 74 28 30 29 |se);. | exit(0)|
|00004820| 3b 0a 7d 0a 00 00 00 00 | 00 00 00 00 00 00 00 00 |;.}.....|........|
|00004830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004870| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004880| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004890| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004900| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004a00| 4d 75 6c 74 69 4d 6f 75 | 73 65 2f 52 45 41 44 4d |MultiMou|se/READM|
|00004a10| 45 2e 6a 69 73 00 00 00 | 00 00 00 00 00 00 00 00 |E.jis...|........|
|00004a20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004a30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004a40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004a60| 00 00 00 00 31 30 30 36 | 34 34 20 00 20 20 20 31 |....1006|44 . 1|
|00004a70| 35 31 20 00 20 20 20 31 | 34 34 20 00 20 20 20 20 |51 . 1|44 . |
|00004a80| 20 20 31 35 37 30 31 20 | 20 35 37 31 36 31 35 34 | 15701 | 5716154|
|00004a90| 36 33 37 20 20 31 33 31 | 32 35 00 20 30 00 00 00 |637 131|25. 0...|
|00004aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ab0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b00| 00 75 73 74 61 72 20 20 | 00 6d 61 6e 61 62 65 00 |.ustar |.manabe.|
|00004b10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b20| 00 00 00 00 00 00 00 00 | 00 64 73 6c 00 00 00 00 |........|.dsl....|
|00004b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004c00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004c10| 20 2a 2a 2a 2a 2a 20 20 | 20 4d 20 75 20 6c 20 74 | ***** | M u l t|
|00004c20| 20 69 20 4d 20 6f 20 75 | 20 73 20 65 20 20 20 2a | i M o u| s e *|
|00004c30| 2a 2a 2a 2a 0a 0a 31 29 | 20 57 68 61 74 20 69 73 |****..1)| What is|
|00004c40| 20 4d 75 6c 74 69 4d 6f | 75 73 65 0a 0a 20 20 1b | MultiMo|use.. .|
|00004c50| 24 42 3a 47 36 61 24 4e | 25 35 25 56 25 4e 21 3c |$B:G6a$N|%5%V%N!<|
|00004c60| 25 48 24 4b 24 4f 25 48 | 25 69 25 43 25 2f 25 5c |%H$K$O%H|%i%C%/%\|
|00004c70| 21 3c 25 6b 24 64 25 22 | 25 2d 25 65 25 5d 25 24 |!<%k$d%"|%-%e%]%$|
|00004c80| 25 73 25 48 24 4a 24 49 | 21 22 3e 2e 37 3f 24 4e |%s%H$J$I|!">.7?$N|
|00004c90| 25 5d 25 24 25 73 1b 28 | 42 0a 1b 24 42 25 46 25 |%]%$%s.(|B..$B%F%|
|00004ca0| 23 25 73 25 30 25 47 25 | 50 25 24 25 39 24 2c 41 |#%s%0%G%|P%$%9$,A|
|00004cb0| 75 48 77 24 35 24 6c 24 | 46 24 24 24 5e 24 39 21 |uHw$5$l$|F$$$^$9!|
|00004cc0| 23 24 3d 24 4e 24 3f 24 | 61 24 4b 21 22 1b 28 42 |#$=$N$?$|a$K!".(B|
|00004cd0| 58 20 57 69 6e 64 6f 77 | 20 1b 24 42 25 37 25 39 |X Window| .$B%7%9|
|00004ce0| 25 46 25 60 24 62 24 22 | 1b 28 42 0a 1b 24 42 24 |%F%`$b$"|.(B..$B$|
|00004cf0| 6b 44 78 45 59 4d 78 4d | 51 24 47 24 2d 24 5e 24 |kDxEYMxM|Q$G$-$^$|
|00004d00| 39 21 23 24 37 24 2b 24 | 37 21 22 24 33 24 6c 24 |9!#$7$+$|7!"$3$l$|
|00004d10| 69 24 4e 25 5d 25 24 25 | 73 25 46 25 23 25 73 25 |i$N%]%$%|s%F%#%s%|
|00004d20| 30 25 47 25 50 25 24 25 | 39 24 72 3b 48 24 43 24 |0%G%P%$%|9$r;H$C$|
|00004d30| 46 3f 5e 24 72 1b 28 42 | 0a 1b 24 42 49 41 24 2f |F?^$r.(B|..$BIA$/|
|00004d40| 24 68 24 26 24 4a 3a 59 | 24 2b 24 4a 3a 6e 36 48 |$h$&$J:Y|$+$J:n6H|
|00004d50| 24 72 24 39 24 6b 24 48 | 24 48 24 46 24 44 24 62 |$r$9$k$H|$H$F$D$b|
|00004d60| 24 4a 24 2f 48 68 24 6c | 24 46 24 37 24 5e 24 24 |$J$/Hh$l|$F$7$^$$|
|00004d70| 24 5e 24 37 24 3f 21 23 | 24 3d 24 33 24 47 21 22 |$^$7$?!#|$=$3$G!"|
|00004d80| 49 61 1b 28 42 0a 1b 24 | 42 43 4a 24 4f 41 75 48 |Ia.(B..$|BCJ$OAuH|
|00004d90| 77 24 35 24 6c 24 46 24 | 24 24 6b 25 5d 25 24 25 |w$5$l$F$|$$k%]%$%|
|00004da0| 73 25 46 25 23 25 73 25 | 30 25 47 25 50 25 24 25 |s%F%#%s%|0%G%P%$%|
|00004db0| 39 24 72 3b 48 24 24 21 | 22 3a 59 24 2b 24 4a 3a |9$r;H$$!|":Y$+$J:|
|00004dc0| 6e 36 48 24 72 24 39 24 | 6b 3b 7e 24 4f 25 5e 1b |n6H$r$9$|k;~$O%^.|
|00004dd0| 28 42 0a 1b 24 42 25 26 | 25 39 24 72 37 52 24 32 |(B..$B%&|%9$r7R$2|
|00004de0| 24 46 3b 48 24 26 24 48 | 24 24 24 26 24 33 24 48 |$F;H$&$H|$$$&$3$H|
|00004df0| 24 72 24 37 24 46 24 24 | 24 3f 24 4e 24 47 24 39 |$r$7$F$$|$?$N$G$9|
|00004e00| 24 2c 21 22 24 33 24 6c | 24 5e 24 3f 4c 4c 45 5d |$,!"$3$l|$^$?LLE]|
|00004e10| 24 47 24 37 24 3f 21 23 | 24 33 24 4e 1b 28 42 0a |$G$7$?!#|$3$N.(B.|
|00004e20| 32 20 1b 24 42 24 44 24 | 72 46 31 3b 7e 24 4b 46 |2 .$B$D$|rF1;~$KF|
|00004e30| 29 32 61 45 2a 24 4b 3b | 48 24 28 24 6c 24 50 24 |)2aE*$K;|H$($l$P$|
|00004e40| 48 3b 57 24 43 24 46 3a | 6e 24 43 24 3f 24 4e 24 |H;W$C$F:|n$C$?$N$|
|00004e50| 2c 1b 28 42 20 4d 75 6c | 74 69 4d 6f 75 73 65 20 |,.(B Mul|tiMouse |
|00004e60| 1b 24 42 24 47 24 39 21 | 23 1b 28 42 0a 20 20 4d |.$B$G$9!|#.(B. M|
|00004e70| 75 6c 74 69 4d 6f 75 73 | 65 20 1b 24 42 24 4f 4a |ultiMous|e .$B$OJ|
|00004e80| 23 3f 74 1b 28 42 28 1b | 24 42 49 38 3d 60 24 4f |#?t.(B(.|$BI8=`$O|
|00004e90| 1b 28 42 20 32 20 1b 24 | 42 24 44 1b 28 42 29 1b |.(B 2 .$|B$D.(B).|
|00004ea0| 24 42 24 4e 25 5d 25 24 | 25 73 25 46 25 23 25 73 |$B$N%]%$|%s%F%#%s|
|00004eb0| 25 30 25 47 25 50 25 24 | 25 39 24 2b 24 69 46 40 |%0%G%P%$|%9$+$iF@|
|00004ec0| 24 69 24 6c 24 3f 3e 70 | 1b 28 42 0a 1b 24 42 4a |$i$l$?>p|.(B..$BJ|
|00004ed0| 73 24 72 4a 51 34 39 24 | 37 21 22 1b 28 42 4d 6f |s$rJQ49$|7!".(BMo|
|00004ee0| 75 73 65 53 79 73 74 65 | 6d 73 1b 24 42 38 5f 34 |useSyste|ms.$B8_4|
|00004ef0| 39 24 4e 25 57 25 6d 25 | 48 25 33 25 6b 24 47 3d |9$N%W%m%|H%3%k$G=|
|00004f00| 50 4e 4f 24 37 24 5e 24 | 39 21 23 24 33 24 6c 24 |PNO$7$^$|9!#$3$l$|
|00004f10| 4b 24 68 24 6a 21 22 1b | 28 42 0a 4d 6f 75 73 65 |K$h$j!".|(B.Mouse|
|00004f20| 53 79 73 74 65 6d 73 20 | 1b 24 42 25 57 25 6d 25 |Systems |.$B%W%m%|
|00004f30| 48 25 33 25 6b 24 72 25 | 35 25 5d 21 3c 25 48 24 |H%3%k$r%|5%]!<%H$|
|00004f40| 37 24 46 24 24 24 6b 25 | 22 25 57 25 6a 25 31 21 |7$F$$$k%|"%W%j%1!|
|00004f50| 3c 25 37 25 67 25 73 24 | 47 24 22 24 6c 24 50 40 |<%7%g%s$|G$"$l$P@|
|00004f60| 5c 42 33 1b 28 42 0a 1b | 24 42 24 37 24 46 24 24 |\B3.(B..|$B$7$F$$|
|00004f70| 24 6b 25 5d 25 24 25 73 | 25 46 25 23 25 73 25 30 |$k%]%$%s|%F%#%s%0|
|00004f80| 25 47 25 50 25 24 25 39 | 24 4e 25 57 25 6d 25 48 |%G%P%$%9|$N%W%m%H|
|00004f90| 25 33 25 6b 24 4b 24 2b | 24 2b 24 6f 24 69 24 3a |%3%k$K$+|$+$o$i$:|
|00004fa0| 4d 78 4d 51 24 47 24 2d | 24 5e 24 39 21 23 1b 28 |MxMQ$G$-|$^$9!#.(|
|00004fb0| 42 0a 0a 32 29 20 53 75 | 70 70 6f 72 74 65 64 20 |B..2) Su|pported |
|00004fc0| 4d 6f 75 73 65 20 50 72 | 6f 74 6f 63 6f 6c 73 0a |Mouse Pr|otocols.|
|00004fd0| 0a 20 20 4d 75 6c 74 69 | 4d 6f 75 73 65 20 1b 24 |. Multi|Mouse .$|
|00004fe0| 42 24 2c 25 35 25 5d 21 | 3c 25 48 24 37 24 46 24 |B$,%5%]!|<%H$7$F$|
|00004ff0| 24 24 6b 25 5e 25 26 25 | 39 25 57 25 6d 25 48 25 |$$k%^%&%|9%W%m%H%|
|00005000| 33 25 6b 24 4f 30 4a 32 | 3c 24 4e 1b 28 42 20 35 |3%k$O0J2|<$N.(B 5|
|00005010| 20 1b 24 42 24 44 24 47 | 24 39 21 23 24 2c 21 22 | .$B$D$G|$9!#$,!"|
|00005020| 1b 28 42 0a 1b 24 42 33 | 4e 47 27 24 37 24 46 24 |.(B..$B3|NG'$7$F$|
|00005030| 24 24 6b 24 4e 24 4f 3e | 65 24 4e 1b 28 42 20 33 |$$k$N$O>|e$N.(B 3|
|00005040| 20 1b 24 42 24 44 24 40 | 24 31 24 47 24 39 21 23 | .$B$D$@|$1$G$9!#|
|00005050| 42 3e 24 4f 4e 49 24 2f | 4a 2c 24 2b 24 6a 24 5e |B>$ONI$/|J,$+$j$^|
|00005060| 24 58 24 73 21 23 1b 28 | 42 0a 0a 20 20 20 20 2d |$X$s!#.(|B.. -|
|00005070| 20 4d 69 63 72 6f 73 6f | 66 74 20 28 1b 24 42 34 | Microso|ft (.$B4|
|00005080| 5e 1b 28 42 20 4c 6f 67 | 69 74 65 63 68 20 46 69 |^.(B Log|itech Fi|
|00005090| 72 73 74 20 4d 6f 75 73 | 65 29 0a 20 20 20 20 2d |rst Mous|e). -|
|000050a0| 20 4d 6f 75 73 65 53 79 | 73 74 65 6d 73 0a 20 20 | MouseSy|stems. |
|000050b0| 20 20 2d 20 50 53 2f 32 | 0a 20 20 20 20 2d 20 42 | - PS/2|. - B|
|000050c0| 75 73 4d 6f 75 73 65 0a | 20 20 20 20 2d 20 4d 4d |usMouse.| - MM|
|000050d0| 53 65 72 69 65 73 0a 20 | 20 20 20 2d 20 4c 6f 67 |Series. | - Log|
|000050e0| 69 74 65 63 68 0a 0a 33 | 29 20 43 6f 6d 70 69 6c |itech..3|) Compil|
|000050f0| 65 20 61 6e 64 20 49 6e | 73 74 61 6c 6c 0a 0a 20 |e and In|stall.. |
|00005100| 20 4d 75 6c 74 69 4d 6f | 75 73 65 20 1b 24 42 24 | MultiMo|use .$B$|
|00005110| 4f 1b 28 42 20 6d 75 6c | 74 69 6d 6f 75 73 65 64 |O.(B mul|timoused|
|00005120| 20 1b 24 42 24 48 24 24 | 24 26 25 47 21 3c 25 62 | .$B$H$$|$&%G!<%b|
|00005130| 25 73 24 48 24 37 24 46 | 3c 42 41 75 24 35 24 6c |%s$H$7$F|<BAu$5$l|
|00005140| 24 46 24 24 24 5e 24 39 | 21 23 24 33 24 6c 1b 28 |$F$$$^$9|!#$3$l.(|
|00005150| 42 0a 1b 24 42 24 72 25 | 33 25 73 25 51 25 24 25 |B..$B$r%|3%s%Q%$%|
|00005160| 6b 24 37 24 46 25 24 25 | 73 25 39 25 48 21 3c 25 |k$7$F%$%|s%9%H!<%|
|00005170| 6b 24 37 24 5e 24 39 21 | 23 1b 28 42 4d 61 6b 65 |k$7$^$9!|#.(BMake|
|00005180| 66 69 6c 65 20 1b 24 42 | 24 47 1b 28 42 20 53 55 |file .$B|$G.(B SU|
|00005190| 50 50 4f 52 54 5f 4d 4f | 55 53 45 20 1b 24 42 24 |PPORT_MO|USE .$B$|
|000051a0| 72 40 29 38 42 24 39 1b | 28 42 0a 1b 24 42 24 6b |r@)8B$9.|(B..$B$k|
|000051b0| 24 4e 24 4f 24 64 24 61 | 24 5e 24 37 24 3f 21 23 |$N$O$d$a|$^$7$?!#|
|000051c0| 24 47 24 39 24 2b 24 69 | 21 22 1b 28 42 4d 61 6b |$G$9$+$i|!".(BMak|
|000051d0| 65 66 69 6c 65 20 1b 24 | 42 24 72 4a 54 3d 38 24 |efile .$|B$rJT=8$|
|000051e0| 39 24 6b 49 2c 4d 57 24 | 4f 24 4a 24 24 24 47 24 |9$kI,MW$|O$J$$$G$|
|000051f0| 37 24 67 24 26 21 23 1b | 28 42 0a 6d 61 6b 65 20 |7$g$&!#.|(B.make |
|00005200| 1b 24 42 24 37 24 46 1b | 28 42 20 6d 61 6b 65 20 |.$B$7$F.|(B make |
|00005210| 69 6e 73 74 61 6c 6c 20 | 1b 24 42 24 39 24 6b 24 |install |.$B$9$k$|
|00005220| 40 24 31 24 47 24 39 21 | 23 1b 28 42 0a 0a 20 20 |@$1$G$9!|#.(B.. |
|00005230| 20 20 20 23 20 6d 61 6b | 65 0a 20 20 20 20 20 23 | # mak|e. #|
|00005240| 20 6d 61 6b 65 20 69 6e | 73 74 61 6c 6c 0a 20 20 | make in|stall. |
|00005250| 20 20 20 70 72 77 2d 72 | 77 2d 72 77 2d 20 20 20 | prw-r|w-rw- |
|00005260| 31 20 72 6f 6f 74 20 20 | 20 20 20 72 6f 6f 74 20 |1 root | root |
|00005270| 20 20 20 20 20 20 20 20 | 20 20 20 30 20 46 65 62 | | 0 Feb|
|00005280| 20 20 33 20 32 33 3a 31 | 33 20 2f 64 65 76 2f 6d | 3 23:1|3 /dev/m|
|00005290| 75 6d 73 65 0a 20 20 20 | 20 20 69 6e 73 74 61 6c |umse. | instal|
|000052a0| 6c 20 2d 63 73 20 6d 75 | 6c 74 69 6d 6f 75 73 65 |l -cs mu|ltimouse|
|000052b0| 64 20 2f 75 73 72 2f 6c | 6f 63 61 6c 2f 73 62 69 |d /usr/l|ocal/sbi|
|000052c0| 6e 0a 20 20 20 20 20 69 | 6e 73 74 61 6c 6c 20 2d |n. i|nstall -|
|000052d0| 63 20 2d 6d 20 37 35 35 | 20 6d 75 6c 74 69 6d 6f |c -m 755| multimo|
|000052e0| 75 73 65 20 2f 75 73 72 | 2f 6c 6f 63 61 6c 2f 62 |use /usr|/local/b|
|000052f0| 69 6e 0a 20 20 20 20 20 | 69 6e 73 74 61 6c 6c 20 |in. |install |
|00005300| 2d 63 20 2d 6d 20 36 34 | 34 20 6d 75 6c 74 69 6d |-c -m 64|4 multim|
|00005310| 6f 75 73 65 64 2e 38 20 | 2f 75 73 72 2f 6d 61 6e |oused.8 |/usr/man|
|00005320| 2f 6a 61 5f 4a 50 2e 75 | 6a 69 73 2f 6d 61 6e 38 |/ja_JP.u|jis/man8|
|00005330| 0a 20 20 20 20 20 69 6e | 73 74 61 6c 6c 20 2d 63 |. in|stall -c|
|00005340| 20 2d 6d 20 36 34 34 20 | 6d 75 6c 74 69 6d 6f 75 | -m 644 |multimou|
|00005350| 73 65 2e 31 20 2f 75 73 | 72 2f 6d 61 6e 2f 6a 61 |se.1 /us|r/man/ja|
|00005360| 5f 4a 50 2e 75 6a 69 73 | 2f 6d 61 6e 31 0a 20 20 |_JP.ujis|/man1. |
|00005370| 20 20 20 69 66 20 5b 20 | 2d 64 20 2f 75 73 72 2f | if [ |-d /usr/|
|00005380| 6d 61 6e 2f 6a 61 5f 4a | 50 2e 75 6a 69 73 20 5d |man/ja_J|P.ujis ]|
|00005390| 3b 20 74 68 65 6e 5c 0a | 09 20 20 20 20 20 69 6e |; then\.|. in|
|000053a0| 73 74 61 6c 6c 20 2d 63 | 20 2d 6d 20 36 34 34 20 |stall -c| -m 644 |
|000053b0| 6d 75 6c 74 69 6d 6f 75 | 73 65 64 2e 38 20 2f 75 |multimou|sed.8 /u|
|000053c0| 73 72 2f 6d 61 6e 2f 6a | 61 5f 4a 50 2e 75 6a 69 |sr/man/j|a_JP.uji|
|000053d0| 73 2f 6d 61 6e 38 3b 5c | 0a 09 20 20 20 20 20 69 |s/man8;\|.. i|
|000053e0| 6e 73 74 61 6c 6c 20 2d | 63 20 2d 6d 20 36 34 34 |nstall -|c -m 644|
|000053f0| 20 6d 75 6c 74 69 6d 6f | 75 73 65 2e 31 20 2f 75 | multimo|use.1 /u|
|00005400| 73 72 2f 6d 61 6e 2f 6a | 61 5f 4a 50 2e 75 6a 69 |sr/man/j|a_JP.uji|
|00005410| 73 2f 6d 61 6e 31 3b 5c | 0a 20 20 20 20 20 66 69 |s/man1;\|. fi|
|00005420| 0a 0a 6d 61 6b 65 20 69 | 6e 73 74 61 6c 6c 20 1b |..make i|nstall .|
|00005430| 24 42 24 4b 24 68 24 6a | 21 22 1b 28 42 2f 64 65 |$B$K$h$j|!".(B/de|
|00005440| 76 2f 6d 75 6d 73 65 20 | 1b 24 42 24 48 24 24 24 |v/mumse |.$B$H$$$|
|00005450| 26 1b 28 42 20 46 49 46 | 4f 20 1b 24 42 24 2c 3c |&.(B FIF|O .$B$,<|
|00005460| 2b 46 30 45 2a 24 4b 3a | 6e 40 2e 24 35 24 6c 24 |+F0E*$K:|n@.$5$l$|
|00005470| 5e 24 39 21 23 24 33 1b | 28 42 0a 1b 24 42 24 6c |^$9!#$3.|(B..$B$l|
|00005480| 24 2c 1b 28 42 20 4d 75 | 6c 74 69 4d 6f 75 73 65 |$,.(B Mu|ltiMouse|
|00005490| 20 1b 24 42 24 2c 25 28 | 25 5f 25 65 25 6c 21 3c | .$B$,%(|%_%e%l!<|
|000054a0| 25 48 24 39 24 6b 1b 28 | 42 20 4d 6f 75 73 65 53 |%H$9$k.(|B MouseS|
|000054b0| 79 73 74 65 6d 73 20 1b | 24 42 38 5f 34 39 24 4e |ystems .|$B8_49$N|
|000054c0| 25 5e 25 26 25 39 24 47 | 24 39 21 23 24 5e 24 3f |%^%&%9$G|$9!#$^$?|
|000054d0| 21 22 1b 28 42 0a 2f 76 | 61 72 2f 6c 6f 63 6b 2f |!".(B./v|ar/lock/|
|000054e0| 4d 75 6c 74 69 4d 6f 75 | 73 65 20 1b 24 42 25 47 |MultiMou|se .$B%G|
|000054f0| 25 23 25 6c 25 2f 25 48 | 25 6a 24 2c 3a 6e 40 2e |%#%l%/%H|%j$,:n@.|
|00005500| 24 35 24 6c 24 5e 24 39 | 21 23 24 33 24 4e 25 47 |$5$l$^$9|!#$3$N%G|
|00005510| 25 23 25 6c 25 2f 25 48 | 25 6a 24 4b 24 4f 1b 28 |%#%l%/%H|%j$K$O.(|
|00005520| 42 0a 1b 24 42 25 6d 25 | 43 25 2f 24 72 37 73 24 |B..$B%m%|C%/$r7s$|
|00005530| 4d 24 3f 1b 28 42 20 50 | 49 44 20 1b 24 42 25 55 |M$?.(B P|ID .$B%U|
|00005540| 25 21 25 24 25 6b 24 2c | 3a 6e 24 69 24 6c 24 5e |%!%$%k$,|:n$i$l$^|
|00005550| 24 39 21 23 1b 28 42 0a | 0a 35 29 20 48 6f 77 20 |$9!#.(B.|.5) How |
|00005560| 74 6f 20 75 73 65 0a 0a | 20 20 6d 75 6c 74 69 6d |to use..| multim|
|00005570| 6f 75 73 65 64 20 1b 24 | 42 25 47 21 3c 25 62 25 |oused .$|B%G!<%b%|
|00005580| 73 24 4b 4d 78 4d 51 24 | 37 24 3f 24 24 25 5d 25 |s$KMxMQ$|7$?$$%]%|
|00005590| 24 25 73 25 46 25 23 25 | 73 25 30 25 47 25 50 25 |$%s%F%#%|s%0%G%P%|
|000055a0| 24 25 39 24 4e 25 39 25 | 5a 25 37 25 63 25 6b 25 |$%9$N%9%|Z%7%c%k%|
|000055b0| 55 25 21 1b 28 42 20 0a | 1b 24 42 25 24 25 6b 24 |U%!.(B .|.$B%$%k$|
|000055c0| 72 3b 58 44 6a 24 37 24 | 46 35 2f 46 30 24 39 24 |r;XDj$7$|F5/F0$9$|
|000055d0| 6c 24 50 46 30 3a 6e 24 | 37 24 5e 24 39 21 23 1b |l$PF0:n$|7$^$9!#.|
|000055e0| 28 42 6d 75 6c 74 69 6d | 6f 75 73 65 64 20 1b 24 |(Bmultim|oused .$|
|000055f0| 42 24 4e 25 2a 25 57 25 | 37 25 67 25 73 24 4f 21 |B$N%*%W%|7%g%s$O!|
|00005600| 22 1b 28 42 0a 0a 20 20 | 20 20 20 6d 75 6c 74 69 |".(B.. | multi|
|00005610| 6d 6f 75 73 65 64 20 7b | 2d 3c 70 72 6f 74 6f 63 |moused {|-<protoc|
|00005620| 6f 6c 20 6e 61 6d 65 3e | 5b 2d 65 6d 75 5d 20 3c |ol name>|[-emu] <|
|00005630| 64 65 76 69 63 65 20 73 | 70 65 63 69 61 6c 20 66 |device s|pecial f|
|00005640| 69 6c 65 3e 7d 20 2e 2e | 2e 0a 20 20 20 20 20 70 |ile>} ..|.. p|
|00005650| 72 6f 74 6f 63 6f 6c 20 | 6e 61 6d 65 3a 0a 20 20 |rotocol |name:. |
|00005660| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005670| 20 20 2d 6d 6f 75 73 65 | 73 79 73 74 65 6d 73 0a | -mouse|systems.|
|00005680| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005690| 20 20 20 20 2d 6d 69 63 | 72 6f 73 6f 66 74 0a 20 | -mic|rosoft. |
|000056a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000056b0| 20 20 20 2d 70 73 32 0a | 20 20 20 20 20 20 20 20 | -ps2.| |
|000056c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 2d 62 75 73 | | -bus|
|000056d0| 6d 6f 75 73 65 0a 20 20 | 20 20 20 20 20 20 20 20 |mouse. | |
|000056e0| 20 20 20 20 20 20 20 20 | 20 20 2d 6d 6d 73 65 72 | | -mmser|
|000056f0| 69 65 73 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |ies. | |
|00005700| 20 20 20 20 20 20 20 20 | 2d 6c 6f 67 69 74 65 63 | |-logitec|
|00005710| 68 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |h. | |
|00005720| 20 20 20 20 20 20 2d 62 | 75 73 6d 6f 75 73 65 0a | -b|usmouse.|
|00005730| 0a 1b 24 42 24 48 24 4a | 24 43 24 46 24 24 24 5e |..$B$H$J|$C$F$$$^|
|00005740| 24 39 21 23 1b 28 42 22 | 2d 65 6d 75 22 20 1b 24 |$9!#.(B"|-emu" .$|
|00005750| 42 24 72 3b 58 44 6a 24 | 39 24 6b 24 33 24 48 24 |B$r;XDj$|9$k$3$H$|
|00005760| 4b 24 68 24 6a 21 22 24 | 3d 24 4e 25 5d 25 24 25 |K$h$j!"$|=$N%]%$%|
|00005770| 73 25 46 25 23 25 73 25 | 30 25 47 25 50 25 24 1b |s%F%#%s%|0%G%P%$.|
|00005780| 28 42 0a 1b 24 42 25 39 | 24 4b 42 50 24 37 24 46 |(B..$B%9|$KBP$7$F|
|00005790| 1b 28 42 20 58 46 72 65 | 65 38 36 20 1b 24 42 24 |.(B XFre|e86 .$B$|
|000057a0| 48 46 31 4d 4d 24 4e 1b | 28 42 20 33 20 1b 24 42 |HF1MM$N.|(B 3 .$B|
|000057b0| 25 5c 25 3f 25 73 25 28 | 25 5f 25 65 25 6c 21 3c |%\%?%s%(|%_%e%l!<|
|000057c0| 25 37 25 67 25 73 24 72 | 39 54 24 24 24 5e 24 39 |%7%g%s$r|9T$$$^$9|
|000057d0| 21 23 1b 28 42 0a 20 20 | 6d 75 6c 74 69 6d 6f 75 |!#.(B. |multimou|
|000057e0| 73 65 64 20 1b 24 42 24 | 72 44 3e 40 5c 35 2f 46 |sed .$B$|rD>@\5/F|
|000057f0| 30 24 39 24 6b 24 4e 24 | 62 4e 49 24 24 24 47 24 |0$9$k$N$|bNI$$$G$|
|00005800| 39 24 2c 21 22 35 2f 46 | 30 24 4b 4a 58 4d 78 24 |9$,!"5/F|0$KJXMx$|
|00005810| 4a 1b 28 42 20 6d 75 6c | 74 69 6d 6f 75 73 65 20 |J.(B mul|timouse |
|00005820| 1b 24 42 24 48 1b 28 42 | 0a 1b 24 42 24 24 24 26 |.$B$H.(B|..$B$$$&|
|00005830| 25 37 25 27 25 6b 25 39 | 25 2f 25 6a 25 57 25 48 |%7%'%k%9|%/%j%W%H|
|00005840| 24 2c 24 22 24 6a 24 5e | 24 39 21 23 1b 28 42 6d |$,$"$j$^|$9!#.(Bm|
|00005850| 75 6c 74 69 6d 6f 75 73 | 65 20 1b 24 42 24 4f 1b |ultimous|e .$B$O.|
|00005860| 28 42 20 50 49 44 20 1b | 24 42 25 55 25 21 25 24 |(B PID .|$B%U%!%$|
|00005870| 25 6b 24 72 25 41 25 27 | 25 43 25 2f 24 37 1b 28 |%k$r%A%'|%C%/$7.(|
|00005880| 42 0a 1b 24 42 24 46 33 | 3a 45 76 24 39 24 6b 25 |B..$B$F3|:Ev$9$k%|
|00005890| 57 25 6d 25 3b 25 39 24 | 2c 1b 28 42 20 6d 75 6c |W%m%;%9$|,.(B mul|
|000058a0| 74 69 6d 6f 75 73 65 64 | 20 1b 24 42 24 47 24 2b |timoused| .$B$G$+|
|000058b0| 24 44 3d 2a 4e 3b 32 44 | 47 3d 24 4a 24 69 3d 2a |$D=*N;2D|G=$J$i=*|
|000058c0| 4e 3b 24 35 24 3b 24 46 | 1b 28 42 20 0a 6d 75 6c |N;$5$;$F|.(B .mul|
|000058d0| 74 69 6d 6f 75 73 65 64 | 20 1b 24 42 24 72 3a 46 |timoused| .$B$r:F|
|000058e0| 35 2f 46 30 24 37 24 5e | 24 39 21 23 25 2a 25 57 |5/F0$7$^|$9!#%*%W|
|000058f0| 25 37 25 67 25 73 24 4f | 24 3d 24 4e 24 5e 24 5e |%7%g%s$O|$=$N$^$^|
|00005900| 1b 28 42 20 6d 75 6c 74 | 69 6d 6f 75 73 65 64 20 |.(B mult|imoused |
|00005910| 1b 24 42 24 4b 30 7a 24 | 2d 45 4f 1b 28 42 0a 1b |.$B$K0z$|-EO.(B..|
|00005920| 24 42 24 35 24 6c 24 6b | 24 4e 24 47 46 31 24 38 |$B$5$l$k|$N$GF1$8|
|00005930| 24 47 24 39 21 23 1b 28 | 42 0a 20 20 1b 24 42 4e |$G$9!#.(|B. .$BN|
|00005940| 63 24 28 24 50 25 35 25 | 56 25 4e 21 3c 25 48 24 |c$($P%5%|V%N!<%H$|
|00005950| 4e 25 5d 25 24 25 73 25 | 46 25 23 25 73 25 30 25 |N%]%$%s%|F%#%s%0%|
|00005960| 47 25 50 25 24 25 39 24 | 2c 1b 28 42 20 50 53 2f |G%P%$%9$|,.(B PS/|
|00005970| 32 20 1b 24 42 38 5f 34 | 39 1b 28 42 28 1b 24 42 |2 .$B8_4|9.(B(.$B|
|00005980| 24 62 24 41 24 6d 24 73 | 1b 28 42 20 32 20 1b 24 |$b$A$m$s|.(B 2 .$|
|00005990| 42 25 5c 25 3f 1b 28 42 | 0a 1b 24 42 25 73 1b 28 |B%\%?.(B|..$B%s.(|
|000059a0| 42 29 1b 24 42 24 47 21 | 22 25 37 25 6a 25 22 25 |B).$B$G!|"%7%j%"%|
|000059b0| 6b 25 5d 21 3c 25 48 24 | 4b 40 5c 42 33 24 37 24 |k%]!<%H$|K@\B3$7$|
|000059c0| 3f 25 5e 25 26 25 39 24 | 2c 1b 28 42 20 4d 6f 75 |?%^%&%9$|,.(B Mou|
|000059d0| 73 65 53 79 73 74 65 6d | 73 20 1b 24 42 38 5f 34 |seSystem|s .$B8_4|
|000059e0| 39 1b 28 42 28 33 20 1b | 24 42 25 5c 25 3f 25 73 |9.(B(3 .|$B%\%?%s|
|000059f0| 1b 28 42 29 1b 24 42 24 | 40 24 43 1b 28 42 0a 1b |.(B).$B$|@$C.(B..|
|00005a00| 24 42 24 3f 24 48 24 39 | 24 6b 24 48 21 22 1b 28 |$B$?$H$9|$k$H!".(|
|00005a10| 42 0a 0a 20 20 20 20 20 | 23 20 6d 75 6c 74 69 6d |B.. |# multim|
|00005a20| 6f 75 73 65 20 2d 70 73 | 32 2d 65 6d 75 20 2f 64 |ouse -ps|2-emu /d|
|00005a30| 65 76 2f 70 73 61 75 78 | 20 2d 6d 6f 75 73 65 73 |ev/psaux| -mouses|
|00005a40| 79 73 74 65 6d 73 20 2f | 64 65 76 2f 74 74 79 53 |ystems /|dev/ttyS|
|00005a50| 30 0a 0a 1b 24 42 24 48 | 35 2f 46 30 24 37 24 5e |0...$B$H|5/F0$7$^|
|00005a60| 24 39 21 23 1b 28 42 22 | 2d 65 6d 75 22 20 1b 24 |$9!#.(B"|-emu" .$|
|00005a70| 42 25 2a 25 57 25 37 25 | 67 25 73 24 4f 25 57 25 |B%*%W%7%|g%s$O%W%|
|00005a80| 6d 25 48 25 33 25 6b 24 | 4e 3b 58 44 6a 24 48 4e |m%H%3%k$|N;XDj$HN|
|00005a90| 25 24 35 24 3a 24 4b 42 | 33 24 31 24 46 3d 71 24 |%$5$:$KB|3$1$F=q$|
|00005aa0| 24 1b 28 42 0a 1b 24 42 | 24 46 24 2f 24 40 24 35 |$.(B..$B|$F$/$@$5|
|00005ab0| 24 24 21 23 24 3d 24 37 | 24 46 21 22 25 22 25 57 |$$!#$=$7|$F!"%"%W|
|00005ac0| 25 6a 25 31 21 3c 25 37 | 25 67 25 73 24 47 25 5e |%j%1!<%7|%g%s$G%^|
|00005ad0| 25 26 25 39 24 4e 25 39 | 25 5a 25 37 25 63 25 6b |%&%9$N%9|%Z%7%c%k|
|00005ae0| 25 55 25 21 25 24 25 6b | 24 72 1b 28 42 0a 2f 64 |%U%!%$%k|$r.(B./d|
|00005af0| 65 76 2f 6d 75 6d 73 65 | 20 1b 24 42 24 4b 21 22 |ev/mumse| .$B$K!"|
|00005b00| 25 5e 25 26 25 39 25 57 | 25 6d 25 48 25 33 25 6b |%^%&%9%W|%m%H%3%k|
|00005b10| 24 72 1b 28 42 20 4d 6f | 75 73 65 53 79 73 74 65 |$r.(B Mo|useSyste|
|00005b20| 6d 73 20 1b 24 42 24 4b | 24 39 24 6c 24 50 4d 78 |ms .$B$K|$9$l$PMx|
|00005b30| 4d 51 24 47 24 2d 24 5e | 24 39 21 23 1b 28 42 0a |MQ$G$-$^|$9!#.(B.|
|00005b40| 58 46 72 65 65 38 36 1b | 24 42 25 50 21 3c 25 38 |XFree86.|$B%P!<%8|
|00005b50| 25 67 25 73 1b 28 42 20 | 33 2e 31 20 1b 24 42 30 |%g%s.(B |3.1 .$B0|
|00005b60| 4a 39 5f 24 4a 24 69 24 | 50 1b 28 42 20 58 46 38 |J9_$J$i$|P.(B XF8|
|00005b70| 36 43 6f 6e 66 69 67 20 | 1b 24 42 24 4b 1b 28 42 |6Config |.$B$K.(B|
|00005b80| 0a 0a 20 20 20 20 20 53 | 65 63 74 69 6f 6e 20 22 |.. S|ection "|
|00005b90| 50 6f 69 6e 74 65 72 22 | 0a 20 20 20 20 20 20 20 |Pointer"|. |
|00005ba0| 20 20 50 72 6f 74 6f 63 | 6f 6c 20 22 6d 6f 75 73 | Protoc|ol "mous|
|00005bb0| 65 73 79 73 74 65 6d 73 | 22 0a 20 20 20 20 20 20 |esystems|". |
|00005bc0| 20 20 20 44 65 76 69 63 | 65 20 22 2f 64 65 76 2f | Devic|e "/dev/|
|00005bd0| 6d 75 6d 73 65 22 0a 20 | 20 20 20 20 23 20 20 20 |mumse". | # |
|00005be0| 20 45 6d 75 6c 61 74 65 | 33 42 75 74 74 6f 6e 73 | Emulate|3Buttons|
|00005bf0| 0a 20 20 20 20 20 45 6e | 64 53 65 63 74 69 6f 6e |. En|dSection|
|00005c00| 0a 0a 1b 24 42 24 4e 24 | 68 24 26 24 4b 3b 58 44 |...$B$N$|h$&$K;XD|
|00005c10| 6a 24 37 24 5e 24 39 21 | 23 1b 28 42 4b 4f 4e 20 |j$7$^$9!|#.(BKON |
|00005c20| 1b 24 42 24 4a 24 69 24 | 50 1b 28 42 20 6b 6f 6e |.$B$J$i$|P.(B kon|
|00005c30| 2e 63 66 67 20 1b 24 42 | 24 4b 1b 28 42 0a 0a 20 |.cfg .$B|$K.(B.. |
|00005c40| 20 20 20 20 23 20 4d 6f | 75 73 65 20 74 79 70 65 | # Mo|use type|
|00005c50| 20 64 65 66 69 6e 69 74 | 69 6f 6e 2e 20 20 43 68 | definit|ion. Ch|
|00005c60| 6f 6f 73 65 20 6f 6e 65 | 20 6f 66 3a 20 4d 69 63 |oose one| of: Mic|
|00005c70| 72 6f 73 6f 66 74 2c 0a | 20 20 20 20 20 23 20 4d |rosoft,.| # M|
|00005c80| 6f 75 73 65 53 79 73 74 | 65 6d 73 2c 20 42 75 73 |ouseSyst|ems, Bus|
|00005c90| 4d 6f 75 73 65 2c 20 4d | 4d 53 65 72 69 65 73 2c |Mouse, M|MSeries,|
|00005ca0| 20 4c 6f 67 69 74 65 63 | 68 2c 20 6f 72 20 4e 6f | Logitec|h, or No|
|00005cb0| 6e 65 2e 0a 20 20 20 20 | 20 4d 6f 75 73 65 3a 0a |ne.. | Mouse:.|
|00005cc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 6d 6f 75 | | mou|
|00005cd0| 73 65 73 79 73 74 65 6d | 73 0a 20 20 20 20 20 23 |sesystem|s. #|
|00005ce0| 20 4d 6f 75 73 65 20 62 | 61 75 64 20 72 61 74 65 | Mouse b|aud rate|
|00005cf0| 0a 20 20 20 20 20 4d 6f | 75 73 65 42 61 75 64 3a |. Mo|useBaud:|
|00005d00| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 31 32 |. | 12|
|00005d10| 30 30 0a 20 20 20 20 20 | 23 20 4d 6f 75 73 65 20 |00. |# Mouse |
|00005d20| 64 65 76 69 63 65 20 66 | 69 6c 65 20 6e 61 6d 65 |device f|ile name|
|00005d30| 0a 20 20 20 20 20 4d 6f | 75 73 65 44 65 76 3a 0a |. Mo|useDev:.|
|00005d40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 2f 64 65 | | /de|
|00005d50| 76 2f 6d 75 6d 73 65 0a | 20 20 20 20 20 4d 6f 75 |v/mumse.| Mou|
|00005d60| 73 65 33 42 75 74 74 6f | 6e 73 3a 0a 20 20 20 20 |se3Butto|ns:. |
|00005d70| 20 20 20 20 20 20 20 20 | 20 4f 66 66 0a 0a 1b 24 | | Off...$|
|00005d80| 42 24 4e 24 68 24 26 24 | 4b 3b 58 44 6a 24 37 24 |B$N$h$&$|K;XDj$7$|
|00005d90| 5e 24 39 1b 28 42 28 54 | 41 42 20 1b 24 42 24 72 |^$9.(B(T|AB .$B$r|
|00005da0| 3b 48 24 26 24 33 24 48 | 1b 28 42 29 1b 24 42 21 |;H$&$3$H|.(B).$B!|
|00005db0| 23 1b 28 42 0a 20 20 6d | 75 6c 74 69 6d 6f 75 73 |#.(B. m|ultimous|
|00005dc0| 65 20 1b 24 42 24 4f 46 | 30 3a 6e 33 4e 47 27 24 |e .$B$OF|0:n3NG'$|
|00005dd0| 2c 24 47 24 2d 24 3f 24 | 69 1b 28 42 20 2f 65 74 |,$G$-$?$|i.(B /et|
|00005de0| 63 2f 72 63 2e 64 2f 72 | 63 2e 6c 6f 63 61 6c 20 |c/rc.d/r|c.local |
|00005df0| 1b 24 42 24 2b 24 69 35 | 2f 46 30 24 39 24 6b 24 |.$B$+$i5|/F0$9$k$|
|00005e00| 68 24 26 1b 28 42 0a 1b | 24 42 24 4b 24 37 24 46 |h$&.(B..|$B$K$7$F|
|00005e10| 24 62 4e 49 24 24 24 47 | 24 39 24 37 21 22 30 6c |$bNI$$$G|$9$7!"0l|
|00005e20| 48 4c 25 66 21 3c 25 36 | 24 2b 24 69 24 62 35 2f |HL%f!<%6|$+$i$b5/|
|00005e30| 46 30 24 47 24 2d 24 6b | 24 48 3b 57 24 24 24 5e |F0$G$-$k|$H;W$$$^|
|00005e40| 24 39 24 4e 24 47 1b 28 | 42 20 2e 78 69 6e 69 74 |$9$N$G.(|B .xinit|
|00005e50| 72 63 0a 1b 24 42 24 4b | 3d 71 24 24 24 46 24 2a |rc..$B$K|=q$$$F$*|
|00005e60| 24 2f 24 4e 24 62 4e 49 | 24 24 24 47 24 37 24 67 |$/$N$bNI|$$$G$7$g|
|00005e70| 24 26 21 23 4e 63 24 28 | 24 50 21 22 1b 28 42 2e |$&!#Nc$(|$P!".(B.|
|00005e80| 6c 6f 67 69 6e 20 1b 24 | 42 24 47 1b 28 42 0a 0a |login .$|B$G.(B..|
|00005e90| 20 20 20 20 20 6d 75 6c | 74 69 6d 6f 75 73 65 20 | mul|timouse |
|00005ea0| 2d 70 73 32 2d 65 6d 75 | 20 2f 64 65 76 2f 70 73 |-ps2-emu| /dev/ps|
|00005eb0| 61 75 78 20 2d 6d 6f 75 | 73 65 73 79 73 74 65 6d |aux -mou|sesystem|
|00005ec0| 73 20 2f 64 65 76 2f 74 | 74 79 53 30 0a 0a 1b 24 |s /dev/t|tyS0...$|
|00005ed0| 42 24 48 24 37 21 22 1b | 28 42 2e 6c 6f 67 6f 75 |B$H$7!".|(B.logou|
|00005ee0| 74 20 1b 24 42 24 47 1b | 28 42 0a 0a 20 20 20 20 |t .$B$G.|(B.. |
|00005ef0| 20 6b 69 6c 6c 20 60 63 | 61 74 20 2f 76 61 72 2f | kill `c|at /var/|
|00005f00| 6c 6f 63 6b 2f 4d 75 6c | 74 69 4d 6f 75 73 65 2f |lock/Mul|tiMouse/|
|00005f10| 4d 75 6c 74 69 4d 6f 75 | 73 65 2e 70 69 64 60 0a |MultiMou|se.pid`.|
|00005f20| 0a 1b 24 42 24 48 24 37 | 24 46 35 2f 46 30 24 48 |..$B$H$7|$F5/F0$H|
|00005f30| 3d 2a 4e 3b 24 72 39 54 | 24 26 24 4e 24 62 4e 49 |=*N;$r9T|$&$N$bNI|
|00005f40| 24 24 24 47 24 37 24 67 | 24 26 21 23 1b 28 42 0a |$$$G$7$g|$&!#.(B.|
|00005f50| 20 20 1b 24 42 24 5e 24 | 3f 21 22 4e 63 24 28 24 | .$B$^$|?!"Nc$($|
|00005f60| 50 25 5e 25 26 25 39 24 | 72 37 52 24 24 24 47 24 |P%^%&%9$|r7R$$$G$|
|00005f70| 24 24 3f 25 37 25 6a 25 | 22 25 6b 25 5d 21 3c 25 |$$?%7%j%|"%k%]!<%|
|00005f80| 48 24 72 25 62 25 47 25 | 60 24 4b 37 52 24 2e 42 |H$r%b%G%|`$K7R$.B|
|00005f90| 58 24 28 24 3f 3e 6c 39 | 67 1b 28 42 0a 1b 24 42 |X$($?>l9|g.(B..$B|
|00005fa0| 24 62 1b 28 42 20 58 20 | 1b 24 42 24 4a 24 49 24 |$b.(B X |.$B$J$I$|
|00005fb0| 4e 25 22 25 57 25 6a 25 | 31 21 3c 25 37 25 67 25 |N%"%W%j%|1!<%7%g%|
|00005fc0| 73 24 72 4e 29 24 41 3e | 65 24 32 44 3e 24 39 49 |s$rN)$A>|e$2D>$9I|
|00005fd0| 2c 4d 57 24 4f 24 22 24 | 6a 24 5e 24 3b 24 73 21 |,MW$O$"$|j$^$;$s!|
|00005fe0| 23 25 2a 25 57 25 37 25 | 67 25 73 1b 28 42 0a 1b |#%*%W%7%|g%s.(B..|
|00005ff0| 24 42 24 72 4a 51 24 28 | 24 46 1b 28 42 20 6d 75 |$B$rJQ$(|$F.(B mu|
|00006000| 6c 74 69 6d 6f 75 73 65 | 20 1b 24 42 24 72 35 2f |ltimouse| .$B$r5/|
|00006010| 46 30 24 37 44 3e 24 39 | 24 40 24 31 24 47 4e 49 |F0$7D>$9|$@$1$GNI|
|00006020| 24 24 24 47 24 39 21 23 | 1b 28 42 0a 0a 36 29 20 |$$$G$9!#|.(B..6) |
|00006030| 42 75 67 28 73 29 0a 0a | 1b 24 42 21 26 3d 2a 4e |Bug(s)..|.$B!&=*N|
|00006040| 3b 24 35 24 3b 24 6b 24 | 48 25 33 25 73 25 3d 21 |;$5$;$k$|H%3%s%=!|
|00006050| 3c 25 6b 24 2c 25 4f 25 | 73 25 30 25 22 25 43 25 |<%k$,%O%|s%0%"%C%|
|00006060| 57 24 39 24 6b 24 33 24 | 48 24 2c 24 22 24 6a 24 |W$9$k$3$|H$,$"$j$|
|00006070| 5e 24 39 21 23 1b 28 42 | 0a 1b 24 42 21 26 4a 23 |^$9!#.(B|..$B!&J#|
|00006080| 3f 74 24 4e 25 5e 25 26 | 25 39 24 72 46 31 3b 7e |?t$N%^%&|%9$rF1;~|
|00006090| 24 4b 3b 48 24 43 24 3f | 3e 6c 39 67 24 4e 46 30 |$K;H$C$?|>l9g$NF0|
|000060a0| 3a 6e 24 4f 49 54 44 6a | 24 47 24 39 21 23 1b 28 |:n$OITDj|$G$9!#.(|
|000060b0| 42 0a 0a 37 29 20 54 68 | 61 6e 6b 73 0a 0a 20 20 |B..7) Th|anks.. |
|000060c0| 1b 24 42 24 33 24 4e 25 | 57 25 6d 25 30 25 69 25 |.$B$3$N%|W%m%0%i%|
|000060d0| 60 24 4f 1b 28 42 20 6d | 63 6f 6e 76 32 20 1b 24 |`$O.(B m|conv2 .$|
|000060e0| 42 24 4e 25 22 25 24 25 | 47 25 22 24 72 3b 32 39 |B$N%"%$%|G%"$r;29|
|000060f0| 4d 24 4b 21 22 1b 28 42 | 4b 4f 4e 20 1b 24 42 24 |M$K!".(B|KON .$B$|
|00006100| 48 1b 28 42 20 58 46 72 | 65 65 38 36 20 1b 24 42 |H.(B XFr|ee86 .$B|
|00006110| 24 4e 25 5e 25 26 25 39 | 1b 28 42 0a 1b 24 42 3c |$N%^%&%9|.(B..$B<|
|00006120| 7e 24 6a 24 4e 25 33 21 | 3c 25 49 24 72 38 2b 24 |~$j$N%3!|<%I$r8+$|
|00006130| 4a 24 2c 24 69 3c 42 38 | 3d 24 35 24 6c 24 5e 24 |J$,$i<B8|=$5$l$^$|
|00006140| 37 24 3f 21 23 4e 3e 3c | 54 24 4e 3a 6e 3c 54 24 |7$?!#N><|T$N:n<T$|
|00006150| 4b 3f 3c 24 2f 34 36 3c | 55 24 37 24 5e 24 39 21 |K?<$/46<|U$7$^$9!|
|00006160| 23 1b 28 42 0a 20 20 1b | 24 42 41 47 41 61 24 2f |#.(B. .|$BAGAa$/|
|00006170| 25 50 25 30 25 6c 25 5d | 21 3c 25 48 24 72 24 37 |%P%0%l%]|!<%H$r$7|
|00006180| 24 46 24 2f 24 40 24 35 | 24 43 24 3f 1b 28 42 20 |$F$/$@$5|$C$?.(B |
|00006190| 74 6f 73 68 69 6f 6a 69 | 40 64 61 72 6b 6f 76 65 |toshioji|@darkove|
|000061a0| 72 2e 69 69 6a 6e 65 74 | 2e 6f 72 2e 6a 70 0a 28 |r.iijnet|.or.jp.(|
|000061b0| 1b 24 42 4a 52 3b 33 49 | 52 49 57 1b 28 42 29 1b |.$BJR;3I|RIW.(B).|
|000061c0| 24 42 24 35 24 73 21 22 | 1b 28 42 6f 6b 61 40 69 |$B$5$s!"|.(Boka@i|
|000061d0| 73 2e 61 69 73 74 2d 6e | 61 72 61 2e 61 63 2e 6a |s.aist-n|ara.ac.j|
|000061e0| 70 28 1b 24 42 32 2c 42 | 3c 39 4c 46 73 1b 28 42 |p(.$B2,B|<9LFs.(B|
|000061f0| 29 1b 24 42 24 35 24 73 | 24 4b 34 36 3c 55 24 37 |).$B$5$s|$K46<U$7|
|00006200| 24 5e 24 39 21 23 1b 28 | 42 0a 20 20 1b 24 42 47 |$^$9!#.(|B. .$BG|
|00006210| 5b 49 5b 45 79 24 4f 41 | 34 24 2f 24 4e 3c 2b 4d |[I[Ey$OA|4$/$N<+M|
|00006220| 33 24 47 24 39 24 2c 21 | 22 25 50 25 30 25 55 25 |3$G$9$,!|"%P%0%U%|
|00006230| 23 25 43 25 2f 25 39 24 | 64 35 21 47 3d 25 22 25 |#%C%/%9$|d5!G=%"%|
|00006240| 43 25 57 24 4b 24 44 24 | 4a 24 2c 24 6b 4a 51 39 |C%W$K$D$|J$,$kJQ9|
|00006250| 39 24 4b 1b 28 42 0a 1b | 24 42 24 44 24 24 24 46 |9$K.(B..|$B$D$$$F|
|00006260| 24 4f 40 27 48 73 3a 6e | 3c 54 24 4b 38 66 30 6c |$O@'Hs:n|<T$K8f0l|
|00006270| 4a 73 24 24 24 3f 24 40 | 24 31 24 6c 24 50 24 48 |Js$$$?$@|$1$l$P$H|
|00006280| 3b 57 24 24 24 5e 24 39 | 21 23 1b 28 42 0a 0a 20 |;W$$$^$9|!#.(B.. |
|00006290| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000062a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000062b0| 20 20 20 20 20 6d 61 6e | 61 62 65 40 70 61 70 69 | man|abe@papi|
|000062c0| 6c 69 6f 2e 74 75 74 69 | 63 73 2e 74 75 74 2e 61 |lio.tuti|cs.tut.a|
|000062d0| 63 2e 6a 70 0a 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |c.jp.---|--------|
|000062e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000062f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00006300| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00006310| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 0a 43 68 61 6e |--------|---.Chan|
|00006320| 67 65 4c 6f 67 3a 0a 0a | 39 35 2f 30 32 2f 30 38 |geLog:..|95/02/08|
|00006330| 20 28 31 2e 30 30 29 0a | 09 1b 24 42 21 26 1b 28 | (1.00).|..$B!&.(|
|00006340| 42 6d 61 6e 20 1b 24 42 | 24 72 3d 71 24 24 24 46 |Bman .$B|$r=q$$$F|
|00006350| 40 35 3c 30 25 6a 25 6a | 21 3c 25 39 1b 28 42 28 |@5<0%j%j|!<%9.(B(|
|00006360| 32 33 30 6b 69 74 73 1b | 24 42 24 4b 46 7e 24 6c |230kits.|$B$KF~$l|
|00006370| 24 46 24 62 24 69 24 28 | 24 6b 24 2b 24 4a 21 29 |$F$b$i$(|$k$+$J!)|
|00006380| 1b 28 42 29 0a 39 35 2f | 30 32 2f 30 37 20 28 30 |.(B).95/|02/07 (0|
|00006390| 2e 39 39 29 0a 09 1b 24 | 42 21 26 1b 28 42 33 20 |.99)...$|B!&.(B3 |
|000063a0| 1b 24 42 25 5c 25 3f 25 | 73 25 28 25 5f 25 65 25 |.$B%\%?%|s%(%_%e%|
|000063b0| 6c 21 3c 25 37 25 67 25 | 73 25 50 25 30 25 55 25 |l!<%7%g%|s%P%0%U%|
|000063c0| 23 25 43 25 2f 25 39 1b | 28 42 20 28 74 68 61 6e |#%C%/%9.|(B (than|
|000063d0| 6b 20 79 6f 75 20 1b 24 | 42 32 2c 42 3c 24 35 24 |k you .$|B2,B<$5$|
|000063e0| 73 1b 28 42 29 0a 39 35 | 2f 30 32 2f 30 37 20 28 |s.(B).95|/02/07 (|
|000063f0| 30 2e 39 38 29 0a 09 1b | 24 42 21 26 1b 28 42 4d |0.98)...|$B!&.(BM|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.